PHPackages                             jwpage/gocard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jwpage/gocard

AbandonedArchivedLibrary[API Development](/categories/api)

jwpage/gocard
=============

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

v2.1.0(13y ago)410PHP

Since Jan 8Pushed 13y ago1 watchersCompare

[ Source](https://github.com/jwpage/gocard-php-api)[ Packagist](https://packagist.org/packages/jwpage/gocard)[ RSS](/packages/jwpage-gocard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

GoCard PHP API
==============

[](#gocard-php-api)

[![Build Status](https://camo.githubusercontent.com/d688e4ec5df44625b2d380197ddc388debe1eebd0f4482b67c9225c56358bde5/68747470733a2f2f7472617669732d63692e6f72672f6a77706167652f676f636172642d7068702d6170692e706e67)](https://travis-ci.org/jwpage/gocard-php-api)

A PHP5.3+ interface that scrapes the Queensland Transport GoCard website to retrieve your information.

Installation
------------

[](#installation)

Add this to your composer.json by running `composer.phar require jwpage/gocard`.

Usage
-----

[](#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
-------------

[](#running-tests)

First, install PHPUnit with `composer.phar install --dev`, then run `./vendor/bin/phpunit`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e9c174f9276d256ac0e92c334a7d342a8140ad538138d5275de9e66ac4c92eb?d=identicon)[jwpage](/maintainers/jwpage)

---

Top Contributors

[![jwpage](https://avatars.githubusercontent.com/u/52687?v=4)](https://github.com/jwpage "jwpage (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jwpage-gocard/health.svg)

```
[![Health](https://phpackages.com/badges/jwpage-gocard/health.svg)](https://phpackages.com/packages/jwpage-gocard)
```

###  Alternatives

[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4495.9M38](/packages/rackspace-php-opencloud)[cdaguerre/php-trello-api

Trello API v2 client

255666.7k3](/packages/cdaguerre-php-trello-api)[jikan-me/jikan

Jikan is an unofficial MyAnimeList API

1.0k28.1k2](/packages/jikan-me-jikan)[dchesterton/marketo-rest-api

A PHP client for the Marketo.com REST API

41844.1k1](/packages/dchesterton-marketo-rest-api)[carlosio/geckoboard

A PHP library for dealing with Geckoboard API (http://www.geckoboard.com)

40172.2k](/packages/carlosio-geckoboard)[dfridrich/ares

Communication with ARES (Czech business register)

24401.0k2](/packages/dfridrich-ares)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
