mhujer/fio-api-php
最新稳定版本:5.0.0
Composer 安装命令:
composer require mhujer/fio-api-php
包简介
Fio API PHP implemention
README 文档
README
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.
Usage
- 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 }
Available endpoints:
downloadFromTo(DateTimeInterface $from, DateTimeInterface $to): TransactionListdownloadSince(DateTimeInterface $since): TransactionListdownloadLast(): TransactionListsetLastId(string $id)- sets the last downloaded ID through the API
Requirements
Fio API PHP works with PHP 7.4 or higher.
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
Author
Martin Hujer - https://www.martinhujer.cz
Changelog
5.0.0 (2024-06-07)
- #31 add
composer/ca-bundleas a required dependency instead of bundled root cert (thx @�feldsam!)
4.2.0 (2024-05-30)
- #28 use new Fio API URL (thx @�feldsam!)
4.1.2 (2019-12-28)
- #19 gracefully handle response with empty column8 (thx @fmasa!)
4.1.1 (2019-01-28)
- #17 added senderName (nazev protiuctu) (thx @jan-stanek!)
4.1.0 (2018-04-13)
- #13 Support /last and /set-last-id endpoints (thx @jiripudil!)
4.0.1 (2017-08-09)
- #12 handle empty transaction list (thx @soukicz!)
4.0.0 (2017-08-04)
- #9 minimal supported version is PHP 7.1
- #9
DateTimereplaced withDateTimeImmutable(orDateTimeInterface) - #9 strict types and primitive typehints are used everywhere
3.0.0 (2016-11-24)
- dropped support for PHP <7
2.3.0 (2016-11-24)
- #7: added official composer CA bundle support (@soukicz)
2.2.0 (2016-03-13)
- #2: added Kdyby/CurlCaBundle as an optional dependency (@mhujer)
2.1.0 (2016-03-12)
- #1: updated default GeoTrust certificate (@soukiii)
- #1: added
specificationfield in transaction (@soukiii)
2.0.0 (2015-06-14)
- upgraded to Guzzle 6
- support for PHP 5.4 dropped (as Guzzle 6 requires PHP 5.5+)
1.0.3 (2015-06-14)
- updated root certificate (Root 3) as the Fio changed it on 2014-05-26
1.0.0 (2015-04-05)
- initial release
统计信息
- 总下载量: 185.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-05