merinsky/fiobank

1.0.1 2017-03-19 22:46 UTC

This package is not auto-updated.

Last update: 2024-05-29 19:23:45 UTC


README

FioBank API

It offers implementation of FioBank API described in the documentation, ver.1.5.2.

Installation

composer require merinsky/fiobank

Usage

The getBankStatement method returns array of bank statements.

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);