PHP code example of carlosafonso / emt-sdk-php
1. Go to this page and download the library: Download carlosafonso/emt-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
carlosafonso / emt-sdk-php example snippets
$clientId = 'FOO.BAR.BAZ';
$passkey = 'ABCDEFGH-1234-ABCD-1234-ABCDEFGHIJKL'
$client = new Afonso\Emt\BusClient($clientId, $passkey);
$data = $client->getRouteLines([123], new \DateTime());
print_r($data);
$busClient = new Afonso\Emt\BusClient($clientId, $passkey);
$geoClient = new Afonso\Emt\GeoClient($clientId, $passkey);
/* (additional clients are on the works) */
bash
$ composer