andrew-svirin / mt942-php
PHP library for parse MT942 Swift format. Helper for EBICS.
Installs: 39 501
Dependents: 2
Suggesters: 3
Security: 0
Stars: 6
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: ^7.2 || ^8
- symfony/validator: ^3.4|^4.0|^5.0
Requires (Dev)
- phpstan/phpstan: ^0.12.57
- phpunit/phpunit: ^8.5 | ^9.1
- squizlabs/php_codesniffer: ^3.3
README
This tools convert MT942 formatted text to PHP objects. PHP library for parse MT942 format that uses Swift.
Banks uses MT942 format for payments data transition.
More details about MT942 format you can find in Internet.
Helper for EBICS Client PHP
Installation
$ composer require andrew-svirin/mt942-php
License
andrew-svirin/mt942-php is licensed under the MIT License, see the LICENSE file for details
Example
Normalize:
$str = file_get_contents('path_to_file.mt942'); $normalizer = new AndrewSvirin\MT942\MT942Normalizer(); $transactionList = $normalizer->normalize($str);
Validate:
$validator = new MT942Validator(); $violationList = $validator->validateList($transactionList);