2017 © Pedro Peláez
 

library transantiago-api

Wrapper API Transantiago for PHP

image

pviojo/transantiago-api

Wrapper API Transantiago for PHP

  • Saturday, October 1, 2016
  • by pviojo
  • Repository
  • 2 Watchers
  • 3 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Wrapper API Transantiago for PHP

Installation

Install with Composer

If you're using Composer to manage dependencies, you can add Transantiago with it., (*1)

composer require pviojo/transantiago-api

or, (*2)

{
    "require": {
        "pviojo/transantiago-api": "*"
    }
}

Documentation

echo (Transantiago::recorrido("401")); //Devuelve la información del recorrido 401
echo (Transantiago::predictor("PA345")); //Devuelve los próximos servicios en el paradero PA345
echo (Transantiago::predictor("PA345", "401")); //Devuelve el proximo servicio 401 en el paradero PA345
echo (Transantiago::paraderosCercanos(-33.4439997, -70.6503935)); //Devuelve los paraderos cercanos a la lat/lng enviada

Default return format is JSON, You can change it setting the format before requesting the information:, (*3)

Transantiago::$format = "JSON" //Set JSON format (default value)
Transantiago::$format = "PHP" //Set PHP Object format

TODO

Check errors!, (*4)

Contribute

  1. Check for open issues or open a new issue for a feature request or a bug
  2. Fork the repository on Github to start making your changes to the master branch (or branch off of it)
  3. Write a test which shows that the bug was fixed or that the feature works as expected
  4. Send a pull request and bug me until I merge it

The Versions

01/10 2016

dev-master

9999999-dev http://github.com/pviojo/transantiago-api

Wrapper API Transantiago for PHP

  Sources   Download

MIT

01/10 2016

v0.2.1

0.2.1.0 http://github.com/pviojo/transantiago-api

Wrapper API Transantiago for PHP

  Sources   Download

MIT

04/07 2016

v0.2

0.2.0.0 http://github.com/pviojo/transantiago-api

Wrapper API Transantiago for PHP

  Sources   Download

MIT

04/07 2016

v0.1

0.1.0.0 http://github.com/pviojo/transantiago-api

Wrapper API Transantiago for PHP

  Sources   Download

MIT