andrew-svirin/mt942-php

PHP library for parse MT942 Swift format. Helper module for EBICS.

1.0.5 2024-12-12 15:01 UTC

This package is auto-updated.

Last update: 2024-12-12 16:32:49 UTC


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 ebics-api/mt942-php

License

ebics-api/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 EbicsApi\MT942\MT942Normalizer();
 $transactionList = $normalizer->normalize($str);

Validate:

 $validator = new MT942Validator();
 $violationList = $validator->validateList($transactionList);