uhin / x12-parser-library Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
How to change the segments delimiters?
Hello there.
I'm reading some Amazon EDI files and I checked there there's a repetition delimiter being set as letter U (which comes from ISA11 segment).
The point is that there are products with ID containing letter U than it breaks into many arrays. For example:
{ "ID": "PO1", "PO101": "1", "PO102": "36", "PO103": "EA", "PO104": "47.9", "PO105": "PE", "PO106": "BP", "PO107": "B000GOY6Z0" }, { "ID": "PO1", "PO101": "2", "PO102": "6", "PO103": "EA", "PO104": "27.84", "PO105": "PE", "PO106": "BP", "PO107": [ "B005", "O5D12" ] }
As you can check, for the second product it should be B005UO5D12 but it became an array.
Thank you
I have added:
"repositories" : [
{
"type": "vcs",
"url": "ssh://[email protected]/shr/x12-parser.git"
}
]
to the composer.json file and it when running: composer require uhin/x12-parser:1.0.0 it is giving mye the following prompt:
[email protected]'s password:
If I try to install without the repositories section, it gets installed by composer and when I try to run the basic sample, I get the following error message:
Warning: include(Uhin\X12Parser\Parser\X12Parser.php): failed to open stream: No such file or directory
Here is my code:
require DIR . '/vendor/autoload.php';
use Uhin\X12Parser\Parser\X12Parser;
$parser = new X12Parser($x12);
print_r($parser->parse());
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.