https://github.com/ebics-api/mt942-php
PHP library implements MT942 format normalizer for SWIFT transactions.
https://github.com/ebics-api/mt942-php
Last synced: 9 months ago
JSON representation
PHP library implements MT942 format normalizer for SWIFT transactions.
- Host: GitHub
- URL: https://github.com/ebics-api/mt942-php
- Owner: ebics-api
- License: mit
- Created: 2019-07-20T06:48:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T15:01:29.000Z (over 1 year ago)
- Last Synced: 2025-08-15T23:39:16.557Z (10 months ago)
- Language: PHP
- Homepage: https://ebics-api.github.io/ebics-client-php/
- Size: 108 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MT942-PHP
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](https://github.com/ebics-api/ebics-client-php)
### Installation
```bash
$ 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:
```php
$str = file_get_contents('path_to_file.mt942');
$normalizer = new EbicsApi\MT942\MT942Normalizer();
$transactionList = $normalizer->normalize($str);
```
Validate:
```php
$validator = new MT942Validator();
$violationList = $validator->validateList($transactionList);
```