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

This package is auto-updated.

Last update: 2024-11-14 15:11:53 UTC


README

Latest Version on Packagist PHPStan Total Downloads

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.