PHP code example of jwpage / gocard

1. Go to this page and download the library: Download jwpage/gocard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jwpage / gocard example snippets


$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