PHP code example of ebics-api / mt942-php

1. Go to this page and download the library: Download ebics-api/mt942-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ebics-api / mt942-php example snippets


 $str = file_get_contents('path_to_file.mt942');
 $normalizer = new EbicsApi\MT942\MT942Normalizer();
 $transactionList = $normalizer->normalize($str);
      
 $validator = new MT942Validator();
 $violationList = $validator->validateList($transactionList);
bash
$ composer