estrato / edifact
Parser and Serializer for UN/EDIFACT messages
4.0.0
2026-06-16 13:50 UTC
Requires
- php: ^8.0
Requires (Dev)
- duncan3dc/object-intruder: ^1.0
- maglnet/composer-require-checker: ^4.0
- mockery/mockery: ^1.4
- nikic/php-parser: ^4.19
- phpstan/phpstan: ^1.12
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.4
- phpunit/phpunit: ^8.5.23
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-06-16 16:26:37 UTC
README
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/
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