php monobank
0.0.3
Monobank 开放 API 的 PHP 客户端
<?php
include ' vendor/autoload.php ' ;
use GuzzleHttp 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 ())));