{"id":33993512,"url":"https://github.com/lightools/fio","last_synced_at":"2025-12-13T07:22:53.836Z","repository":{"id":57014917,"uuid":"54553940","full_name":"lightools/fio","owner":"lightools","description":"Basic operations over Fio API.","archived":false,"fork":false,"pushed_at":"2017-02-05T11:46:44.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-29T13:41:42.984Z","etag":null,"topics":["fio","fio-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightools.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-23T11:17:24.000Z","updated_at":"2023-03-28T22:47:49.000Z","dependencies_parsed_at":"2022-08-22T09:31:30.366Z","dependency_job_id":null,"html_url":"https://github.com/lightools/fio","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lightools/fio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ffio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ffio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ffio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ffio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightools","download_url":"https://codeload.github.com/lightools/fio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ffio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27701961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fio","fio-api"],"created_at":"2025-12-13T07:22:52.500Z","updated_at":"2025-12-13T07:22:53.829Z","avatar_url":"https://github.com/lightools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nLibrary providing basic operations with Fio API.\n\n## Installation\n\n```sh\n$ composer require lightools/fio\n```\n\n## Usage\n\nThis library doesn't implement all functions of Fio API (e.g. Euro or International payments),\nit just provides simple interface for the most common use-cases.\nYou can easily work with multiple Fio accounts or you can use FioClient directly.\n\n### Initialize\n\n```php\n$httpClient = new Bitbang\\Http\\Clients\\CurlClient();\n$xmlLoader = new Lightools\\Xml\\XmlLoader();\n\n$fio = new Lightools\\Fio\\FioClient($xmlLoader, $httpClient);\n$account = new Lightools\\Fio\\FioAccount('12345678', 'token', $fio); // no problem with having more Fio accounts\n```\n\n### Retrieving new payments\n\n```php\ntry {\n    $transactions = $account-\u003egetNewTransactions();\n    foreach ($transactions as $transaction) {\n        echo $transaction-\u003egetVariableSymbol();\n    }\n\n} catch (Lightools\\Fio\\FioException $e) { // or catch specific exceptions\n    $account-\u003esetBreakpointById($lastKnownMoveId);\n    // further processing\n}\n```\n\n### Sending transaction orders\n\n```php\ntry {\n    $amount = 100;\n    $currency = 'CZK';\n    $accountTo = '12345678';\n    $bankCode = '6100';\n    $order = new Lightools\\Fio\\TransactionOrder($amount, $currency, $accountTo, $bankCode);\n    $order-\u003esetVariableSymbol('8888');\n\n    $account-\u003esendOrders([$order]);\n\n} catch (Lightools\\Fio\\FioTemporaryUnavailableException $e) {\n    // Fio is overheated, wait 30 seconds and repeat\n\n} catch (Lightools\\Fio\\FioWarningException $e) {\n    // in this case, Fio accepted orders, but detected something suspicious\n\n} catch (Lightools\\Fio\\FioFailureException $e) {\n    // e.g. HTTP request failed, Fio is down, ...\n}\n```\n\n## Logging traffic\n\nIt is very useful to store HTTP requests and responses when communicating with Fio API so you can easily determine all possible problems.\nLibrary [lightools/bitbang-http-logger](https://github.com/lightools/bitbang-http-logger) provides this functionality.\n\n## How to run tests\n\n```sh\n$ vendor/bin/tester -c tests/php.ini -d extension_dir=ext tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Ffio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightools%2Ffio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Ffio/lists"}