2017 © Pedro Peláez
 

library gocard

A PHP API for retrieving data from the Translink GoCard website.

image

jwpage/gocard

A PHP API for retrieving data from the Translink GoCard website.

  • Thursday, January 10, 2013
  • by jwpage
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

GoCard PHP API

Build Status, (*1)

A PHP5.3+ interface that scrapes the Queensland Transport GoCard website to retrieve your information., (*2)

Installation

Add this to your composer.json by running composer.phar require jwpage/gocard., (*3)

Usage

$goCard = new \Jwpage\GoCard($cardNumber, $password);
$goCard->login();       // true
$goCard->getBalance();  // 10.00

$startDate = new \DateTime('2012-10-01');
$endDate   = new \DateTime('2012-12-01');
$goCard->getHistory($startDate, $endDate); // array of \Jwpage\GoCard\History items

$goCard->logout();      // true

Running Tests

First, install PHPUnit with composer.phar install --dev, then run ./vendor/bin/phpunit., (*4)

The Versions

10/01 2013

dev-master

9999999-dev

A PHP API for retrieving data from the Translink GoCard website.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping gocard brisbane

09/01 2013

v2.1.0

2.1.0.0

  Sources   Download

The Requires

 

The Development Requires

08/01 2013

v2.0.0

2.0.0.0

  Sources   Download

The Requires

 

The Development Requires