Solution:
This can be done by pulling in guzzle. Try: https://github.com/guzzle/guzzle
$client = new Client();
$body = $client->get('mtaapi.herokuapp.com/stations')->getBody();
$obj = json_decode($body);
Hope this helps you!!
Solution:
This can be done by pulling in guzzle. Try: https://github.com/guzzle/guzzle
$client = new Client();
$body = $client->get('mtaapi.herokuapp.com/stations')->getBody();
$obj = json_decode($body);
Hope this helps you!!