2017 © Pedro Peláez
 

library emtapi

East Midlands Trains PHP API Client

image

b3none/emtapi

East Midlands Trains PHP API Client

  • Friday, March 23, 2018
  • by b3none
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

emtapi-client

East Midlands Trains API Client written in PHP., (*1)

Author

B3none - Developer / Maintainer, (*2)

Composer

```$xslt composer require b3none/emtapi, (*3)


# Example use ```php $emtapi = \B3none\emtapi\EMTClient::create(); $emtapi->createStationsFile(); $emtapi->getJourneys(\B3none\emtapi\Station::DERBY, \B3none\emtapi\Station::NOTTINGHAM);

Example response

[
    'trains' => [
        0 => [
            'locationname' => 'Nottingham',
            'st' => '16:40',
            'et' => 'On time',
            'cssclass' => null,
            'operator' => 'CrossCountry',
            'trainid' => '+eRxw6w7A8UJsGRGIAT5Ag==',
            'platform' => '6A',
            'selecteddets_sta' => '16:34',
            'selecteddets_location' => 'Derby',
            'selecteddets_length' => '23 minutes',
            'selecteddets_prevlength' => '2 hours, 55 minutes',
            'callingpoints' => [
                '0' => [
                    'locationname' => 'Long Eaton',
                    'st' => '16:34',
                    'et' => 'On time',
                    'cssclass' => null
                ]
            ],
            'previouscallingpoints' => [
                0 => [
                    'locationname' => 'Cardiff Central',
                    'st' => '13:45',
                    'et' => null,
                    'cssclass' => 'circle-full',
                    'at' => 'On time'
                ]
            ]
        ]
    ]
]

Testing

To run all of the unit tests run, (*4)

vendor/bin/phpunit tests

The Versions

23/03 2018

dev-develop

dev-develop

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none

21/03 2018

dev-master

9999999-dev

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none

21/03 2018

v2.0.0

2.0.0.0

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none

17/02 2018

v1.0.2

1.0.2.0

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none

16/02 2018

v1.0.1

1.0.1.0

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none

16/02 2018

v1.0.0

1.0.0.0

East Midlands Trains PHP API Client

  Sources   Download

The Requires

 

The Development Requires

by Avatar b3none