metroplex-systems / edifact
Parser and Serializer for UN/EDIFACT messages
Installs: 376 512
Dependents: 0
Suggesters: 0
Security: 0
Stars: 36
Watchers: 4
Forks: 10
Open Issues: 2
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3.0 || ^1.0
- duncan3dc/php-ini: ^1.2
- maglnet/composer-require-checker: ^2.0 || ^3.0 || ^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: ^3.5.8
This package is auto-updated.
Last update: 2025-02-01 14:00:20 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