In the code bellow I am trying to get the result of PNR Status
But don't know how to proper use it to call function
URL - https://github.com/ankitpise/OpenIrctc
error - Internal Server Error
<?php
include 'OpenIrctc.php';
$irctc = new OpenIrctc(6643704951); // $pnr_number = null by default
$irctc->set_language(); // english / hindi. English by default
$irctc->pnr_full_check(6643704951); // not necessary to pur $pnr number if initiated library with it.
$status= json_decode($data);
print_r($status);
var_dump($status);
?>