jwpage/gocard
最新稳定版本:v2.1.0
Composer 安装命令:
composer require jwpage/gocard
包简介
A PHP API for retrieving data from the Translink GoCard website.
README 文档
README
A PHP5.3+ interface that scrapes the Queensland Transport GoCard website to retrieve your information.
Installation
Add this to your composer.json by running
composer.phar require jwpage/gocard.
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.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-01-09