2017 © Pedro Peláez
 

library sg-bus-api

PHP API for bus services from LTA DataMall

image

komirad/sg-bus-api

PHP API for bus services from LTA DataMall

  • Thursday, December 22, 2016
  • by komirad
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

Sg Bus API

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

A PHP library for checking on Singapore public bus service information and arrival timings. Uses LTA's API., (*2)

Introduction

Request API key from LTA For documentation of API response see Documentation of underlying API from LTA, (*3)

Install

Via Composer, (*4)

``` bash $ composer require komirad/sg-bus-api, (*5)


## Usage ``` php $busApi = new Komirad\SgBus\SgBus(<your account key>); /** * Bus arrival times * @param $busStopId * @param null $serviceNumber Optional. * @param bool|false $SST Optional. return result in Singapore standard time * @return mixed */ $busApi::BusArrival()->handle($busStopId, $serviceNumber, $SST); // Paginated APIs 50 results each page $busApi::BusStops()->next(); $busApi::BusRoutes()->next(); $busApi::BusServices()->next();

Testing

bash $ phpunit, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

22/12 2016

dev-master

9999999-dev https://github.com/php-loep/:package_name

PHP API for bus services from LTA DataMall

  Sources   Download

MIT

The Requires

 

The Development Requires

league package

21/12 2016

v1.02

1.02.0.0 https://github.com/php-loep/:package_name

PHP API for bus services from LTA DataMall

  Sources   Download

MIT

The Requires

 

The Development Requires

league package

21/12 2016

v1.01

1.01.0.0 https://github.com/php-loep/:package_name

PHP API for bus services from LTA DataMall

  Sources   Download

MIT

The Requires

 

The Development Requires

league package

21/12 2016

v1.0

1.0.0.0 https://github.com/php-loep/:package_name

PHP API for bus services from LTA DataMall

  Sources   Download

MIT

The Requires

 

The Development Requires

league package