A framework for parsing and generating EDI X12 documents in PHP.
Library built on top of aonach/php-edi and PopeFelix/php-edi, rebuild later by INWAVE Team.
use Mrstroz\Edi;
use Mrstroz\Edi\SegmentParser;
$documents = Edi::parseFile('./data/edi/edi-message.txt');
$segments = SegmentParser::parseAllSegmentsAsArray($documents);