https://github.com/maksa988/monobank-api
https://github.com/maksa988/monobank-api
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maksa988/monobank-api
- Owner: maksa988
- License: mit
- Created: 2019-06-25T17:10:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T08:40:24.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T06:22:51.750Z (6 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Monobank API Client
[](https://packagist.org/packages/maksa988/monobank-api)
[](https://travis-ci.org/maksa988/monobank-api)
[](https://github.styleci.io/repos/193751164)
[](https://packagist.org/packages/maksa988/monobank-api)
[](https://packagist.org/packages/maksa988/monobank-api)PHP client for MonoBank API services (https://api.monobank.ua/docs/)
- List of monobank currency rates
- Information about the client and the list of his accounts
- Get statement#### PHP >= 5.6.4
## Installation
Monobank API for PHP is installed via [Composer](https://getcomposer.org/).
For most uses, you will need to require `maksa988/monobank-api` and an individual gateway:```bash
composer require maksa988/monobank-api
```## Usage
```php
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
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please send me an email at [email protected] instead of using the issue tracker.
## Credits
- [Maksa988](https://github.com/maksa988)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.