PHP code example of mrstroz / php-edi-x12

1. Go to this page and download the library: Download mrstroz/php-edi-x12 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/ */

    

mrstroz / php-edi-x12 example snippets


use Mrstroz\Edi;
use Mrstroz\Edi\SegmentParser;

$documents = Edi::parseFile('./data/edi/edi-message.txt');
$segments = SegmentParser::parseAllSegmentsAsArray($documents);