greksazoo / unicredit-transfer-import-generator-hu
Transfer Import file Generator for Unicredit Bank Zrt. (Hungary) Laravel
1.7.0
2023-02-14 11:21 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- illuminate/support: ^8.0|^9.0|^10.0
- nesbot/carbon: ^2.66
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0
- phpstan/phpstan: ^1.4
- phpunit/phpunit: ^9.0|^10.0
README
This package mainly used for generate Unicredit Bank (Hungary) HUF transfers import file. This is for Laravel 8.0 or newer.
Installation
You can install the package via composer:
composer require greksazoo/unicredit-transfer-import-generator-hu
Usage
$uni = new UnicreditHuGenerator(); $data=[ 'currency' => 'HUF', 'account_number' => '11112222-33334444-00000000', ], [ [ 'partner_name'=>'TesztPartner1', 'account_number' => '11112222-00000099', 'date'=>'2022-02-02', 'amount'=>'200010', 'notice'=>'ez egy hosszabb kozlemeny is lehet' ], [ 'partner_name'=>'TesztPartner2', 'account_number' => '11112299-33334444-00000002', 'amount'=>'3000100', 'notice'=>'ez egy hosszabb kozlemeny is lehet' ], ]; $filenev = $uni->generateFile($data); return Storage::download($filenev,'data.pay');
or simply generate only text in a variable:
$uni = new UnicreditHuGenerator(); $data= [ 'currency' => 'HUF', 'account_number' => '11112222-33334444-00000000', ], [ [ 'partner_name'=>'TesztPartner1', 'account_number' => '11112222-00000099', 'date'=>'2022-02-02', 'amount'=>'200010', 'notice'=>'ez egy hosszabb kozlemeny is lehet' ], [ 'partner_name'=>'TesztPartner2', 'account_number' => '11112299-33334444-00000002', 'amount'=>'3000100', 'notice'=>'ez egy hosszabb kozlemeny is lehet' ], ]; $text = $uni->generateText($data);
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email zoli.greksa@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.