Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.14 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.14 KB

edifact

A PHP library to parse and serialize UN/EDIFACT messages.

Full documentation is available at http://metroplex-systems.github.io/edifact/
PHPDoc API documentation is also available at http://metroplex-systems.github.io/edifact/api/

Build Status Latest Version

Quick Examples

Read an EDI message from a file

$message = \Metroplex\Edifact\Message::fromFile("/tmp/order.edi");

foreach ($message->getAllSegments() as $segment) {
    echo $segment->getName() . "\n";
}

Create an EDI message

$message = new \Metroplex\Edifact\Message;

$message->addSegment(new Segment("QTY", ["21", "8"]));

echo $message->serialize() . "\n";

Read more at http://metroplex-systems.github.io/edifact/

Changelog

A Changelog has been available since the beginning of time