PHP code example of iillexial / php-monobank-api

1. Go to this page and download the library: Download iillexial/php-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/ */

    

iillexial / php-monobank-api example snippets


$monobank = new Monobank\Monobank('token');
$statements = $monobank->personal->getStatements('account_id', new DateTime());

$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->getClientInfo();


$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->setWebhook('url here');

$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->deleteWebhook();

$monobank = new Monobank\Monobank();
$rates = $monobank->bank->getCurrencyRates();