PHPackages                             lightools/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. [API Development](/categories/api)
4. /
5. lightools/fio

AbandonedLibrary[API Development](/categories/api)

lightools/fio
=============

Basic operations over Fio API.

v1.0.0(10y ago)37.0kMITPHPPHP &gt;=5.4

Since Mar 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/lightools/fio)[ Packagist](https://packagist.org/packages/lightools/fio)[ RSS](/packages/lightools-fio/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Introduction
------------

[](#introduction)

Library providing basic operations with Fio API.

Installation
------------

[](#installation)

```
$ composer require lightools/fio
```

Usage
-----

[](#usage)

This library doesn't implement all functions of Fio API (e.g. Euro or International payments), it just provides simple interface for the most common use-cases. You can easily work with multiple Fio accounts or you can use FioClient directly.

### Initialize

[](#initialize)

```
$httpClient = new Bitbang\Http\Clients\CurlClient();
$xmlLoader = new Lightools\Xml\XmlLoader();

$fio = new Lightools\Fio\FioClient($xmlLoader, $httpClient);
$account = new Lightools\Fio\FioAccount('12345678', 'token', $fio); // no problem with having more Fio accounts
```

### Retrieving new payments

[](#retrieving-new-payments)

```
try {
    $transactions = $account->getNewTransactions();
    foreach ($transactions as $transaction) {
        echo $transaction->getVariableSymbol();
    }

} catch (Lightools\Fio\FioException $e) { // or catch specific exceptions
    $account->setBreakpointById($lastKnownMoveId);
    // further processing
}
```

### Sending transaction orders

[](#sending-transaction-orders)

```
try {
    $amount = 100;
    $currency = 'CZK';
    $accountTo = '12345678';
    $bankCode = '6100';
    $order = new Lightools\Fio\TransactionOrder($amount, $currency, $accountTo, $bankCode);
    $order->setVariableSymbol('8888');

    $account->sendOrders([$order]);

} catch (Lightools\Fio\FioTemporaryUnavailableException $e) {
    // Fio is overheated, wait 30 seconds and repeat

} catch (Lightools\Fio\FioWarningException $e) {
    // in this case, Fio accepted orders, but detected something suspicious

} catch (Lightools\Fio\FioFailureException $e) {
    // e.g. HTTP request failed, Fio is down, ...
}
```

Logging traffic
---------------

[](#logging-traffic)

It is very useful to store HTTP requests and responses when communicating with Fio API so you can easily determine all possible problems. Library [lightools/bitbang-http-logger](https://github.com/lightools/bitbang-http-logger) provides this functionality.

How to run tests
----------------

[](#how-to-run-tests)

```
$ vendor/bin/tester -c tests/php.ini -d extension_dir=ext tests
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b545e3f9d982d538f11bc42b3dc2d186f706cef92c8bc8bc8f8788b08186ea5?d=identicon)[janedbal](/maintainers/janedbal)

---

Top Contributors

[![janedbal](https://avatars.githubusercontent.com/u/1993453?v=4)](https://github.com/janedbal "janedbal (13 commits)")

---

Tags

fiofio-api

### Embed Badge

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

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

###  Alternatives

[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136400.8k14](/packages/rector-rector-src)[brandembassy/slim-nette-extension

19198.2k](/packages/brandembassy-slim-nette-extension)[worksome/graphlint

A static analysis tool for GraphQL

13192.4k](/packages/worksome-graphlint)[h4kuna/fio

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

56349.5k1](/packages/h4kuna-fio)[ondrs/hi

Czech names and surnames greeting generator API PHP wrapper

3967.8k](/packages/ondrs-hi)[vitexsoftware/pohoda-connector

Stormware's Pohoda mServer client.

177.0k1](/packages/vitexsoftware-pohoda-connector)

PHPackages © 2026

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