Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP EDI X12 Parsing

Tags:

php

parsing

edi

x12

I have a project to implement an EDI solution into an existing ecommerce-like website. There are only three EDI documents involved and only one company to transfer files with. They have strictly defined the X12 documents, and will be responsible for all of the GET/PUT's to an FTP site. The three documents are the Inventory Advice (inbound), Shipment Notification (inbound), and Invoice (outbound).

We do not want/need to implement a full-blown EDI management solution. My question is, am I crazy to think that this is a relatively simple parsing task using PHP? Does anyone know of any existing PHP libraries that might be useful (maybe X12 to XML)? My searches have come-up empty. I'd like to get started on my own right away if it is a realistic goal and no other resources are available.

like image 614
etriad Avatar asked Jan 14 '12 04:01

etriad


2 Answers

The designer for the Oakland Data Transformer is free and this allows you to really understand the structure of the X12 document in the context of your sample document. You will need to contact Oakland Software support to get the required EDI definitions.

Depending on what you need, if you are just parsing the documents you should be able to do it pretty easily with PHP and understanding the context using the above product will take the mystery out of it for you.

Full disclosure: I run Oakland Software.

like image 161
Francis Upton IV Avatar answered Sep 20 '22 23:09

Francis Upton IV


I was looking for something like that for .NET ... and nothing (at least not free, but really expensive). I don't think that you will find anything for php. I've ended up with simple code to do parsing (edi 850) and extract info that I needed. I think that it would be the best approach for you as well.

like image 42
Aleksandar Vucetic Avatar answered Sep 18 '22 23:09

Aleksandar Vucetic