PHP code example of ianlchapman / tube-status
1. Go to this page and download the library: Download ianlchapman/tube-status 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/ */
ianlchapman / tube-status example snippets
use IanLChapman\TubeStatus\TubeStatus;
$statusService = new TubeStatus;
$statusService->setApplicationId('APPLICATION_ID'); // replace these values with information from the TFL API
$statusService->setApplicationKey('APPLICATION_KEY');
$statusService->getTubeStatus($client);
php composer.phar