PHPackages                             h4kuna/fio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. h4kuna/fio

ActiveLibrary

h4kuna/fio
==========

Read movements by json file from Fio bank and send payments.

v3.0.14(1y ago)56332.7k↑14.4%25[1 issues](https://github.com/h4kuna/fio/issues)[1 PRs](https://github.com/h4kuna/fio/pulls)1MITPHPPHP &gt;=8.0CI passing

Since Oct 12Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/h4kuna/fio)[ Packagist](https://packagist.org/packages/h4kuna/fio)[ Docs](https://github.com/h4kuna/fio)[ Fund](https://revolut.me/milan2m/czk1000/fio)[ GitHub Sponsors](https://github.com/h4kuna)[ RSS](/packages/h4kuna-fio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (14)Versions (45)Used By (1)

Fio
===

[](#fio)

[![Downloads this Month](https://camo.githubusercontent.com/e830d2cc161c523098c5998cc43d44584438b23f3afe96bdaf150c204c496d64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f68346b756e612f66696f2e737667)](https://packagist.org/packages/h4kuna/fio)[![Latest Stable Version](https://camo.githubusercontent.com/246a1fabc10ce3ea5d861ad687e13646be22bb344259b9b7e38b05253eda5549/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f66696f2f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/fio)[![Coverage Status](https://camo.githubusercontent.com/e8a52656606e7f3d9e22280cee2303fba015c74e9b276585930ff7d6acec15b5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68346b756e612f66696f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/h4kuna/fio?branch=master)[![Total Downloads](https://camo.githubusercontent.com/2f399d853de9b416fcb9038d4d6aad3c16dd5343e784e031a55accc416b96225/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f66696f2f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/fio)[![License](https://camo.githubusercontent.com/951b871861aec72c9cc9a7c89a474582607ddab74c93d0ad442be77bcd95ecfd/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f66696f2f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/fio)

Support [Fio API](http://www.fio.sk/docs/cz/API_Bankovnictvi.pdf). Read is provided via json file.

### Versions

[](#versions)

Here is [changlog](changelog.md)

### Nette framework

[](#nette-framework)

Follow this [extension](//github.com/h4kuna/fio-nette).

### Installation to project by composer

[](#installation-to-project-by-composer)

```
$ composer require h4kuna/fio
```

Not implemented
---------------

[](#not-implemented)

- 5.3.1.7: STA (MT940)
- 5.3.2: Transakce z POS terminálů nebo platební brány obchodníka
- 6.4.2: pain.008 (příkazy k inkasu)
- only json for read movements
- only xml for import

### How to use

[](#how-to-use)

Here is [example](tests/origin/FioTest.php) and run via cli. This script require account.ini in same directory, whose looks like.

```
[my-account]
account = 123456789
token = abcdefghijklmn

[wife-account]
account = 987654321
token = zyxuvtsrfd
```

FioFactory class help you create instances of classes FioPay and FioRead.

```
use h4kuna\Fio;

$fioFactory = new Fio\FioFactory(parse_ini_file($ini, true));

$fioRead = $fioFactory->createFioRead('my-account');
$fioPay = $fioFactory->createFioPay('wife-account');

$fioRead2 = $fioFactory->createFioRead(); // first in list is default, [my-account]
```

You can use different config bud keep structure of php array

```
[
	'my-alias' => [
		'account' => '123456789',
		'token' => 'abcdefg'
	],
	'next-alias' => [
		'account' => '987654321',
		'token' => 'tuvwxyz'
	]
]
```

Reading
-------

[](#reading)

> Keep on mind, all items like variable symbol, constant symbol and specific symbol can to have zeros from left side.

#### Read range between date.

[](#read-range-between-date)

```
use h4kuna\Fio;
/* @var $fioRead Fio\FioRead */
/* @var $list Fio\Read\TransactionList */
$list = $fioRead->movements(/* $from, $to */); // default is last week

foreach ($list as $transaction) {
    /* @var $transaction Fio\Read\Transaction */
    var_dump($transaction->moveId);
    foreach ($transaction as $property => $value) {
        var_dump($property, $value);
    }
}

var_dump($list->getInfo());
```

#### You can download transaction by id of year.

[](#you-can-download-transaction-by-id-of-year)

```
use h4kuna\Fio;
/* @var $fioRead Fio\FioRead */
/* @var $list Fio\Read\TransactionList */
$list = $fioRead->movementId(2, 2015); // second transaction of year 2015
```

#### Very useful method where download last transactions.

[](#very-useful-method-where-download-last-transactions)

After download it automatic set new break point.

```
use h4kuna\Fio;
/* @var $fioRead Fio\FioRead */
/* @var $list Fio\Read\TransactionList */
$list = $fioRead->lastDownload();
// same use like above
var_dump($list->getInfo()->idLastDownload);
```

#### Change your break point.

[](#change-your-break-point)

By date.

```
$fioRead->setLastDate('1986-12-30');
$list = $fioRead->lastDownload();
var_dump($list->getInfo()->idLastDownload);
```

By movement ID.

```
$fioRead->setLastId(123456789);
$list = $fioRead->lastDownload();
var_dump($list->getInfo()->idLastDownload); // 123456789
```

> Tip: You can define own TransactionFactory and create instance and add to Read\\Json::\_\_construct()

Payment (writing)
-----------------

[](#payment-writing)

Api has three response languages, default is set **cs**. For change:

```
/* @var $fioPay h4kuna\Fio\FioPay */
$fioPay->setLanguage('en');
```

For send request is method send whose accept, file path to your xml or abo file or instance of class Property.

```
$myFile = '/path/to/my/xml/or/abo/file.xml'; // file extension is important
$fioPay->send($myFile);
```

Object pay only to czech or slovak:

```
/* @var $national Fio\Pay\Payment\National */
$national = $fioPay->createNational($amount, $accountTo);
$national->setVariableSymbol($vs);
/* set next payment property $national->set* */
$fioPay->send();
```

Euro zone payment:

```
/* @var $euro Fio\Pay\Payment\Euro */
$euro = $fioPay->createEuro($amount, $accountTo, $name);
$euro->setVariableSymbol($vs);
/* set next payment property $euro->set* */
$fioPay->send();
```

International payment:

```
/* @var $international Fio\Pay\Payment\International */
$international = $fioPay->createInternational($amount, $accountTo, $bic, $name, $street, $city, $country, $info);
$international->setRemittanceInfo2('foo');
/* set next payment property $international->set* */
$fioPay->send();
```

Send more payments in one request:

```
foreach($pamentsRows as $row) {
	/* @var $national Fio\Pay\Payment\National */
	$national = $fioPay->createNational($row->amount, $row->accountTo);
	$national->setVariableSymbol($row->vs);
}
$fioPay->send();
```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance52

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~111 days

Recently: every ~75 days

Total

42

Last Release

396d ago

Major Versions

v1.3.5 → v2.0.02019-04-09

v2.0.7 → v3.0.02023-02-09

v2.0.8 → v3.0.92024-06-03

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.2

v3.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b4efb9b89167fa3598b1a41477b20387390f4a0fb65b447bd6bb7c30a49020?d=identicon)[h4kuna](/maintainers/h4kuna)

---

Top Contributors

[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (125 commits)")[![foxycode](https://avatars.githubusercontent.com/u/1284781?v=4)](https://github.com/foxycode "foxycode (9 commits)")[![juniwalk](https://avatars.githubusercontent.com/u/451918?v=4)](https://github.com/juniwalk "juniwalk (2 commits)")[![czPechy](https://avatars.githubusercontent.com/u/8396185?v=4)](https://github.com/czPechy "czPechy (1 commits)")[![kockodev](https://avatars.githubusercontent.com/u/10545057?v=4)](https://github.com/kockodev "kockodev (1 commits)")[![radimvaculik](https://avatars.githubusercontent.com/u/461164?v=4)](https://github.com/radimvaculik "radimvaculik (1 commits)")[![adamzelycz](https://avatars.githubusercontent.com/u/23708774?v=4)](https://github.com/adamzelycz "adamzelycz (1 commits)")[![Tetragramat](https://avatars.githubusercontent.com/u/7849117?v=4)](https://github.com/Tetragramat "Tetragramat (1 commits)")[![brabijan](https://avatars.githubusercontent.com/u/2448709?v=4)](https://github.com/brabijan "brabijan (1 commits)")[![Ciki](https://avatars.githubusercontent.com/u/342730?v=4)](https://github.com/Ciki "Ciki (1 commits)")

---

Tags

api-clientfiophp

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/h4kuna-fio/health.svg)

```
[![Health](https://phpackages.com/badges/h4kuna-fio/health.svg)](https://phpackages.com/packages/h4kuna-fio)
```

###  Alternatives

[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
