maksa988 / monobank-api
Mobobank API 的 PHP 客户端
v1.2.0
2022-09-26 08:39 UTC
Requires
- php: >=5.6.4
- guzzlehttp/guzzle: ~6.2|^7.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-09-26 12:50:59 UTC
README
PHP 客户端用于 MonoBank API 服务 (https://api.monobank.ua/docs/)
- monobank 货币汇率列表
- 关于客户端及其账户列表的信息
- 获取账单
PHP >= 5.6.4
安装
Monobank API for PHP 通过 Composer 安装。对于大多数用途,您需要要求 maksa988/monobank-api
和一个单独的网关
composer require maksa988/monobank-api
使用方法
use Maksa988\MonobankAPI\MonobankAPI; $api = new MonobankAPI('YOUR_TOKEN'); /* * Get currencies * * Returns array of \Maksa988\MonobankAPI\DTO\CurrencyInfo instainces */ $api->currency(); /* * Get information about client * * Returns instance of \Maksa988\MonobankAPI\DTO\UserInfo */ $api->personalInfo(); /* * Get personal statement * * Returns instance of \Maksa988\MonobankAPI\DTO\StatementItems */ $api->personalStatement(\DateTime $from, $account = 0, \DateTime $to = null);
变更日志
请参阅 CHANGELOG 以获取有关最近更改的更多信息。
贡献
请参阅 CONTRIBUTING 以获取详细信息。
安全
如果您发现任何与安全相关的问题,请通过电子邮件发送给我 maksa988ua@gmail.com,而不是使用问题跟踪器。
致谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 以获取更多信息。