1. Go to this page and download the library: Download sabas/edifact library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sabas / edifact example snippets
$p = new EDI\Parser();
$p->load($location); // a local path to a file or a URL (if file_get_contents() allows for remote access)
$p->loadString($string); // a full message (single line text)
$p->loadArray($array); // an array of strings (one segment per entry)
$c->errors();
$c->get();
$c = new EDI\Encoder($x, $compact = true);
$c = new EDI\Encoder();
$c->encode($array, false);