PHP code example of merinsky / fiobank

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

    

merinsky / fiobank example snippets


define('API_KEY', '...');
$from = \DateTime::createFromFormat('Y-m-d', '2017-01-01');
$to = \DateTime::createFromFormat('Y-m-d', '2017-01-30');

// gets bank statements, period between $from and $to
$bank = new \Merinsky\FioBank\FioBank(API_KEY);
$bs = $bank->getBankStatement($from, $to);