Fio bank REST API implementation in PHP. It allows you to download and iterate through account balance changes.
There is a Symfony Bundle for using this library in a Symfony app.
- Install the latest version with
composer require mhujer/fio-api-php
- Create a token in the ebanking (Nastavení / API)
- Use it according to the example bellow and check the docblocks
<?php
require_once 'vendor/autoload.php';
$downloader = new FioApi\Downloader('TOKEN@todo');
$transactionList = $downloader->downloadSince(new \DateTimeImmutable('-1 week'));
foreach ($transactionList->getTransactions() as $transaction) {
var_dump($transaction); //object with getters
}
Fio API PHP works with PHP 7 or higher.
Bugs and feature request are tracked on GitHub
Martin Hujer - [email protected] - https://www.martinhujer.cz
- #12 handle empty transaction list (thx @soukicz!)
- #9 minimal supported version is PHP 7.1
- #9
DateTime
replaced withDateTimeImmutable
(orDateTimeInterface
) - #9 strict types and primitive typehints are used everywhere
- dropped support for PHP <7
- #7: added official composer CA bundle support (@soukicz)
- #2: added Kdyby/CurlCaBundle as an optional dependency (@mhujer)
- #1: updated default GeoTrust certificate (@soukiii)
- #1: added
specification
field in transaction (@soukiii)
- upgraded to Guzzle 6
- support for PHP 5.4 dropped (as Guzzle 6 requires PHP 5.5+)
- updated root certificate (Root 3) as the Fio changed it on 2014-05-26
- initial release