PHP code example of maksa988 / monobank-api
1. Go to this page and download the library: Download maksa988/monobank-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
maksa988 / monobank-api example snippets
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);