estrato / edifact
Parser and Serializer for UN/EDIFACT messages
Installs: 50 074
Dependents: 0
Suggesters: 0
Security: 0
Stars: 35
Watchers: 4
Forks: 9
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
- mockery/mockery: ^1.4
- phpstan/phpstan: ^0.12.99
- phpstan/phpstan-mockery: ^0.12.12
- phpstan/phpstan-phpunit: ^0.12.17
- phpunit/phpunit: ^8.5.23
- squizlabs/php_codesniffer: ^3.5.8
This package is auto-updated.
Last update: 2024-11-18 12:16:45 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