h4kuna/fio-nette

Fio library and this is extension for Nette framework.

Installs: 43 184

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 2

Open Issues: 1

pkg:composer/h4kuna/fio-nette

v3.0.4 2025-01-13 18:50 UTC

This package is auto-updated.

Last update: 2025-10-01 00:12:36 UTC


README

Downloads this Month Latest Stable Version Coverage Status Total Downloads License

Homepage for Fio and documentation.

Install by composer

$ composer require h4kuna/fio-nette

Example NEON config

Define extension

extensions:
	fio: h4kuna\Fio\Nette\DI\FioExtension

Configure extension

fio:
	# mandatory
	account: 2600267402/2010
	token: 5asd64as5d46ad5a6

More accounts and first is default.

fio:
	accounts:
		my-alias: # name for select account
			account: 2600267402/2010
			token: 5asd64as5d46ad5a6
		next-alias:
			account: 123456789/3216
			token: 6a4sd54asadsasde564

And choose account like this.

use h4kuna\Fio\Nette;

$fioFactory = $container->getService('fio.factory');
$fioPay = $fioFactory->createFioPay('next-alias');

// both are same, because first is default
$fioRead = $fioFactory->createFioRead();
$fioRead = $fioFactory->createFioRead('my-alias');