boda/edi-parser
Simple positional EDI parser that transforms a raw fixed-width EDI string into a structured key-value array using templates. Supports parsing header/body/footer sections and grouped lines for nested records. Install via Composer and use as a Symfony bundle.
Adopt if:
Validator).Look elsewhere if:
bas2/edi or thephpleague/edi).*"This package lets us automate EDI parsing for [specific use case, e.g., supplier invoices or logistics data] without building a custom solution from scratch—saving an estimated 2–3 months of development time. For example, if we’re integrating with [Partner X]’s flat-file EDI system to reduce manual data entry errors, this tool would let our team focus on business logic instead of parsing edge cases.
Why now?
Trade-offs:
Ask: Approve a 2-week spike to integrate and test this for [use case], with a plan to either adopt or pivot if it doesn’t meet our needs."*
*"Pros:
EdiParser class and wrap it for Laravel using a Service Provider.config/edi.php) and reuse across the app.Cons/Risks:
Kernel and DependencyInjection. We’ll need to:
EdiParser class (likely ~50–100 lines of PHP).config() or a custom repository.EdiParseException) and integrate with Laravel’s Validator.Recommendation:
thephpleague/edi).Next Steps:
EdiParser class from the Symfony bundle.config/edi.php).Alternatives Considered:
thephpleague/edi: Supports X12/EDIFACT but overkill for positional EDI.Ask: Approve the spike and allocate [X] dev hours to evaluate this approach."*
How can I help you explore Laravel packages today?