h4kuna / fio-nette
Fio library and this is extension for Nette framework.
Fund package maintenance!
h4kuna
revolut.me/milan2m/czk1000/fio-nette
Installs: 37 094
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: >=8.0
- h4kuna/dir: ^0.1.3
- h4kuna/fio: ^3.0.12
- nette/di: ^3.1
Requires (Dev)
- guzzlehttp/guzzle: ^7.5
- nette/tester: ^2.4
- phpstan/phpstan: ^1.9
- phpstan/phpstan-strict-rules: ^1.4
- tracy/tracy: ^2.9
README
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');