PHP code example of zhooravell / php-monobank
1. Go to this page and download the library: Download zhooravell/php-monobank 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/ */
zhooravell / php-monobank example snippets
uzzleHttp\Client;
use Monobank\MonobankClient;
use Monobank\ValueObject\Token;
$httpClient = new Client();
$token = new Token('...');
$client = new MonobankClient($httpClient, $token);
var_dump($client->getExchangeRates());
var_dump($client->getClientInfo());
var_dump($client->getPersonalStatement(new PersonalStatementRequest(new DateTime('2019-06-20'), new DateTime())));