This package mainly used for generate Unicredit Bank (Hungary) HUF transfers import file. This is for Laravel 8.0 or newer.
You can install the package via composer:
composer require greksazoo/unicredit-transfer-import-generator-hu
$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);
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email zoli.greksa@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.