dlakomski/edifact

Tools in PHP for UN/EDIFACT

0.0.3 2015-09-02 11:45 UTC

This package is auto-updated.

Last update: 2024-11-04 20:46:39 UTC


README

Tools to process EDI messages in UN/EDIFACT format

Supported syntax is version 3.

It's provided in a Composer package.

EDI/Parser

Given an edi message checks the syntax, outputs errors and returns the message as a multidimensional array.

EDI/Encoder

Given a multidimensional array (formatted as the output of the parser), returns an EDI string, optionally one segment per line.

EDI/Analyser

Create from EDI file readable structured text with comments from segments.xml

EDI/Reader

Read from EDI file requested segment element values

Example

Edifact DTM+7:201309200717:203'

Array ['DTM',['7','201309200717','203']]

Syntax data

Processed from EDI PEAR Package by David JEAN LOUIS (izi), downloadable from https://code.google.com/p/izi-sandbox/source/browse/trunk/php/php_edi/.

Notes

Valid characters are: A-Za-z0-9.,-()/'+:=?!"%&*;<> UNECE