A Mondo Bank API Client - https://getmondo.co.uk/docs
This library is an MVP and only supports the basic functionality.
Doesn't yet support pagination, expansions and file uploads. Pull requests happily accepted.
composer require thepixeldeveloper/mondo-client
// Get an instance of the Guzzle client
$guzzleClient = (new Thepixeldeveloper\Mondo\GuzzleClientFactory(getenv('ACCESS_TOKEN')))->getClient();
// and create a Mondo client
$client = new Thepixeldeveloper\Mondo\Client($guzzleClient, SerializerBuilder::create()->build());
// Pass the client into the relevant Client class.
$ping = new Thepixeldeveloper\Mondo\Client\Ping($client);
// Response is of the type Thepixeldeveloper\Mondo\Response\Ping\WhoAmI
$response = $ping->whoAmI();
$accounts = new Thepixeldeveloper\Mondo\Client\Accounts($client);
$accounts->getAccounts();
$balance = new Thepixeldeveloper\Mondo\Client\Balance($client);
$balance->getBalanceForAccountId(123);
$transactions = new Thepixeldeveloper\Mondo\Client\Transactions($client);
$transactions->getTransactionsForAccountId(123);
$transactions->getTransaction(456);
I've decided to leave out authentication for the MVP. Use a library like League/oauth2-client to get yourself an access token.
Run the phpSpec tests with ...
composer test