Skip to content

Parser and Serializer for UN/EDIFACT messages in PHP

License

Notifications You must be signed in to change notification settings

estratocloud/edifact

Repository files navigation

edifact

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

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

release build coverage

Quick Examples

Read an EDI message from a file

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

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

Create an EDI message

$message = new \Estrato\Edifact\Message;

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

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

Read more at http://estratocloud.github.io/edifact/

Changelog

A Changelog has been available since the beginning of time

About

Parser and Serializer for UN/EDIFACT messages in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published