定制 jwpage/gocard 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jwpage/gocard

最新稳定版本:v2.1.0

Composer 安装命令:

composer require jwpage/gocard

包简介

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

README 文档

README

Build Status

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-01-09