I need to convert Edifact messages to a PHP array. The message standard which should be supported is MEDVRY.
How to program that?
I need to convert Edifact messages to a PHP array. The message standard which should be supported is MEDVRY.
How to program that?
I'm the author of the class used by @Thomas1703 (https://github.com/sabas/Edifact), I've updated the code recently because I found some bugs in the regexes. Currently handles probably all the needs (wrapped messages) and does a bit of validation before returning the array.
i use this class: https://github.com/sabas/Edifact/blob/master/class.EDIParser.php
$c=new EDIParser('name.edi');
//Output a multidimensional array.
//Errors $c->errors()
//Array $c->get()
//Json $c->getJson()