UpBank unofficial PHP SDK for the UpBank API
Visit https://developer.up.com.au/
Visit https://api.up.com.au/getting_started
composer require yahaay-labs/upbank-php-sdk
<?php
require './vendor/autoload.php';
use YahaayLabs\UpBank\Client;
$access_token = "[UPBANK ACCESS TOKEN]";
$client = new Client($access_token);
//Get All Accounts in an array of objects
$accounts = $client->accounts->all()->data();
array_walk( $accounts, function($account) {
echo "{$account->id} => {$account->attributes->displayName} <br/>";
});
<?php
//Get All Accounts
$accounts = $client->accounts->all()->data();
//Get All Categories
$accounts = $client->categories->all()->data();
//Get All Tags
$accounts = $client->tags->all()->data();
//Get All Transactions
$accounts = $client->transactions->all()->data();
//Getting specific record
$transactionID = "[TRANSACTION ID]";
$transaction = $client->transactions->get($transactionID)->getRaw();
Adding using test is still in the works
To run the test:
composer run test
Contributions are more than welcome! See CONTRIBUTING.md for more info.
MIT license. Please see LICENSE for more info.