2017 © Pedro PelĂĄez
 

library divia-totem

A wrapper for the Divia Totem API

image

vermi0ffh/divia-totem

A wrapper for the Divia Totem API

  • Thursday, July 3, 2014
  • by vermi0ffh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

divia-totem

Divia totem API PHP wrapper, (*1)

Installation

In composer, add a dependancy :, (*2)

"require": {
    "vermi0ffh/divia-totem": "dev-master"
}

Usage

To retrieve all lines simply do :, (*3)

$lignes = Totem::listerLignes();

The result is an array of Ligne objects., (*4)

To retrieve all stops of a line, do :, (*5)

$arrets = $ligne->listerArrets();

The result is an array of Arret objects., (*6)

You can retrieve the next times a bus/tram will go by a stop with :, (*7)

$horaires = $arret->getHoraires();
foreach($horaires as $horaire) {
    foreach($horaire->passages as $passage) {
        var_dump($passage);
    }
}

The Versions

03/07 2014

dev-master

9999999-dev https://github.com/vermi0ffh/divia-totem

A wrapper for the Divia Totem API

  Sources   Download

MIT

The Requires

 

api php divia totem

03/07 2014

1.0.0

1.0.0.0 https://github.com/vermi0ffh/divia-totem

A wrapper for the Divia Totem API

  Sources   Download

MIT

The Requires

 

api php divia totem