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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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

  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

All versions of transantiago-api with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pviojo/transantiago-api contains the following files

Loading the files please wait ....