2017 © Pedro Peláez
 

library jcdecaux-cyclocity

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

image

h4md1/jcdecaux-cyclocity

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  • Wednesday, October 15, 2014
  • by killerwolf
  • Repository
  • 1 Watchers
  • 3 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

JCDODataWrapper Build Status Scrutinizer Code Quality

A standalone PHP wrapper to access all JCDecaux bike sharing sytem RealTime Data, (*1)

Installation

Using composer

As you usualy do, (*2)

{
    "require": {
        "killerwolf/jcdodatawrapper": "0.*"
    }
}

Regular download

Just download the 'Wrapper' class from GitHub, load it into your app, as you usually do (regular include, or any autoload system your project use), (*3)

Example usage

    <?php

    require "vendor/autoload.php"; //composer autoloading

    //instanciate with your ApiKey provided when you registred by developer.jcdecaux.com
    $VLSWrapper = new JCDodatawrapper\Vls\Wrapper( '<youApiKey>' );

    //using curl to handle the requesting thing
    //you can set your own request method by implementing the HTTPClientInterface
    $HTTPClient = new JCDodatawrapper\Vls\HTTPClientCurl();
    $VLSWrapper->setHTTPClient( $HTTPClient );

    //dumping all contracts (all cities that JCDECAUX rules on)
    var_dump( $VLSWrapper->getContracts() );

    //dumping the stations details (both static and dynamic) of a particular contract (city)
    var_dump( $VLSWrapper->getStationsByContract( 'Rouen' ) );

    //dumping a station data of a particular contract (city)
    var_dump( $VLSWrapper->getStation('Rouen', 15 ) );

The Versions

15/10 2014

dev-master

9999999-dev https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

15/10 2014

v1.0.1

1.0.1.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

15/10 2014

dev-develop

dev-develop https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

15/10 2014

v1.0.0

1.0.0.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

17/09 2014

v0.3.1

0.3.1.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

28/07 2013

v0.3

0.3.0.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

25/07 2013

v0.2

0.2.0.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0

 

16/05 2013

v0.1

0.1.0.0 https://github.com/killerwolf/JCDODataWrapper

PHP class wrapper to query JCDECAUX/VLS Open Data Rest API

  Sources   Download

The Requires

  • php >=5.3.0