Download the PHP package pviojo/transantiago-api without Composer
On this page you can find all versions of the php package pviojo/transantiago-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pviojo/transantiago-api
More information about pviojo/transantiago-api
Files in pviojo/transantiago-api
Download pviojo/transantiago-api
More information about pviojo/transantiago-api
Files in pviojo/transantiago-api
Vendor pviojo
Package transantiago-api
Short Description Wrapper API Transantiago for PHP
License MIT
Homepage http://github.com/pviojo/transantiago-api
Package transantiago-api
Short Description Wrapper API Transantiago for PHP
License MIT
Homepage http://github.com/pviojo/transantiago-api
Please rate this library. Is it a good library?
Informations about the package transantiago-api
Wrapper API Transantiago for PHP
Installation
Install with Composer
If you're using Composer to manage dependencies, you can add Transantiago with it.
composer require pviojo/transantiago-api
or
{
"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:
Transantiago::$format = "JSON" //Set JSON format (default value)
Transantiago::$format = "PHP" //Set PHP Object format
TODO
Check errors!
Contribute
- Check for open issues or open a new issue for a feature request or a bug
- Fork the repository on Github to start making your changes to the
master
branch (or branch off of it) - Write a test which shows that the bug was fixed or that the feature works as expected
- Send a pull request and bug me until I merge it
All versions of transantiago-api with dependencies
PHP Build Version
Package Version
No informations.
The package pviojo/transantiago-api contains the following files
Loading the files please wait ....