flowgistics/laravel-xml
Laravel XML is a lightweight package for working with XML in Laravel apps. Parse, build, and convert XML documents to arrays or JSON using a simple, expressive API for reading and writing XML.
SimpleXML/DOMDocument code per feature.XMLBuilder (PR #5, first-time contributor). No new features, no public API changes, no deprecations. It should not shift prioritisation; it only slightly improves our confidence that the package is looked after.Adopt when most of these hold:
SimpleXML glue scattered across services.Look elsewhere when:
XMLReader directly or a dedicated streaming/serializer library; DOM-style builders will blow memory.For executives (one paragraph): We evaluated flowgistics/laravel-xml, a small Laravel package for producing and consuming XML. It removes the need to hand-build XML for integrations like partner feeds, sitemaps, and invoice exports — work we would otherwise pay engineers to write and maintain ourselves. Risk is low: it's a thin, permissively licensed dependency, and the just-published 1.2.0 was a maintenance-only release (static-analysis support for the XML builder), meaning no functional or breaking changes and no migration work for us. We recommend a trial adoption on the next XML-shaped feature, isolated behind our own service class so it can be swapped if maintenance lapses.
For engineering: version 1.2.0 is a patch-level release from 1.1.1 — a phpstan typing fix in XMLBuilder contributed by a first-time contributor. Practical upside: better IDE completion and static-analysis coverage when constructing XML, so CI catches type mistakes in payload builders. No API surface change, so no upgrade cost. Usage guidance: keep XML construction/parsing behind a single injected service, add fixture-based tests for encoding, CDATA, empty nodes, and namespace handling (the usual failure modes), and avoid it for large streaming documents or spec-heavy formats like signed invoices and SAML, where we should use a domain-specific library.
How can I help you explore Laravel packages today?