PHP EDI X12 解析

发布于 2024-12-27 08:18:51 字数 288 浏览 1 评论 0原文

我有一个项目要在现有的类似电子商务的网站中实施 EDI 解决方案。仅涉及三个 EDI 文件,并且只有一家公司可以传输文件。他们严格定义了 X12 文档,并将负责 FTP 站点的所有 GET/PUT。这三个文件是库存通知书(入库)、装运通知(入库)和发票(出库)。

我们不希望/不需要实施成熟的 EDI 管理解决方案。我的问题是,我是否疯狂地认为这是一个使用 PHP 的相对简单的解析任务?有谁知道任何可能有用的现有 PHP 库(也许是 X12 到 XML)?我的搜索结果是空的。如果这是一个现实的目标并且没有其他可用资源,我想立即开始自己的工作。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

耶耶耶 2025-01-03 08:18:51

Oakland Data Transformer 的设计器是免费的,这使您可以真正了解 X12 文档的结构示例文档的上下文。您需要联系 Oakland Software 支持以获取所需的 EDI 定义。

根据您的需要,如果您只是解析文档,您应该能够使用 PHP 轻松完成,并且使用上述产品了解上下文将为您揭开谜团。

全面披露:我经营奥克兰软件公司。

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.

北音执念 2025-01-03 08:18:51

我一直在寻找类似的 .NET 东西......但什么也没有(至少不是免费的,但非常昂贵)。我认为你不会找到任何关于 php 的东西。我最终得到了简单的代码来进行解析(edi 850)并提取我需要的信息。我认为这对您来说也是最好的方法。

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.

一腔孤↑勇 2025-01-03 08:18:51

它很旧,但我使用谷歌找到了它,也许我的答案会对某人有所帮助...

  1. 我在 pear.php.net 的评论中找到
    http://code.google.com/ p/izi-sandbox/source/browse/#svn%2Ftrunk%2Fphp%2Fphp_edi

  2. 我发现在 github 上搜索 EDIFACT
    https://github.com/markfoster/php_edifact

It's old, but I found it using google and maybe my answer will help someone...

  1. I found in a comment on pear.php.net
    http://code.google.com/p/izi-sandbox/source/browse/#svn%2Ftrunk%2Fphp%2Fphp_edi

  2. I found searching for EDIFACT on github
    https://github.com/markfoster/php_edifact

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文