Download the PHP package jbtje/edifact without Composer

On this page you can find all versions of the php package jbtje/edifact. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package edifact

edifact

Tools to process EDI messages in UN/EDIFACT format

Supported syntax is version 3.

It's provided in a Composer package:

composer require jbtje/edifact

The mapping xml files are provided in a separate package:

composer require php-edifact/edifact-mapping

EDI\Parser

Given an edi message checks the syntax, outputs errors and returns the message as a multidimensional array.

INPUT

Where $x could be:

OR

OUTPUT

Errors

Array

EDI\Encoder

Given a multidimensional array (formatted as the output of the parser), returns an EDI string, optionally one segment per line.

INPUT

$x is a multidimensional array where first dimension is the EDI segment, second contains elements:

$wrap is a boolean, if you need a segment per line. Set to false to disable wrapping

OR

OUTPUT

EDI\Analyser

Create from EDI file readable structured text with comments from segments.xml. Requires the EDI\Mapping package.

*** Example INPUT

*** Example Output

EDI\Reader

Read from EDI file requested segment element values.

INPUT

Where X could be:

OR

OUTPUT Errors

Array

EDI\Interpreter

Organizes the data parsed by EDI/Parser using the xml description of the message and the xml segments.

INPUT

OUTPUT

Json

Json for interchange service segments (UNB / UNZ)

Errors (per message)

Example

Edifact

DTM+7:201309200717:203'

Array

Testing

The package should be required with composer, alongside edifact-mapping. The tests then can be run simply with phpunit in the root of the package.

Notes

Valid characters are: A-Za-z0-9.,-()/'+:=?!"%&*;<> UNECE


All versions of edifact with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ext-json Version *
ext-simplexml Version *
voku/arrayy Version ~7.1
php-edifact/edifact-mapping Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jbtje/edifact contains the following files

Loading the files please wait ....