thenorthmemory/xml
Lightweight XML transformer for PHP: parse XML into arrays and build XML back from arrays. Supports repeated elements/lists, optional pretty printing, custom root nodes, and wrapping arrays to control tag output. Extracted from wechatpay-php for general use.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| prewk/xml-string-streamer | 0.88 | Stream huge XML files with minimal memory by iterating one node at a time. XmlStringStreamer reads from a file/buffered stream and returns each matched element as a string for processing (e.g., SimpleXML). Includes StringWalker and faster UniqueNode parsers. | 359 | 361 | 48 | 92K | 10 | 6.4 | 35.9 | MIT | 3 years ago | |
| doctrine/oxm | 0.88 | Doctrine OXM (Object XML Mapper) maps PHP objects to XML documents and back using Doctrine-style metadata. Useful for XML serialization/deserialization in domain models, with mapping drivers and runtime tools to integrate XML workflows into applications. | 85 | 88 | 20 | 1 | 0 | 0.5 | 0.1 | MIT | — | |
| zf1/zend-xml | 0.87 | Zend Framework 1 XML component, split out as a standalone package. Provides XML handling utilities such as DOM/SimpleXML helpers and security-conscious parsing features used by legacy ZF1 apps that need dependable XML processing without the full framework. | 3 | 3 | 4 | 17K | 1 | 0.2 | 49.9 | BSD-3-Clause | — | |
| doctrine/doctrine-oxm-bundle | 0.86 | — | 12 | 12 | 4 | 0 | 0 | 0.1 | — | — | — | |
| common-gateway/sim-xml-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.7 | — | — | 3 years ago | |
| jailtonsc/laravel-response-xml | 0.86 | — | 47 | 48 | 14 | 5K | 10 | 3.5 | 30.6 | — | — | |
| laminas/laminas-xml | 0.86 | Secure XML utilities for PHP: parse and validate XML with safe defaults, mitigate XXE/XEE attacks, and control external entity loading. Helpful for apps that consume untrusted XML and need hardened DOM/LibXML configuration. | 14 | 14 | 10 | 72K | 1 | 11.3 | 54.7 | BSD-3-Clause | 9 months ago | |
| sabre/xml | 0.86 | sabre/xml is a specialized XML reader and writer for PHP, offering a simple, namespace-aware API for parsing and generating XML. It supports PHP 7.4 and 8, with full type declarations in version 3. | 529 | 554 | 79 | 1M | 19 | 30.3 | 58.7 | BSD-3-Clause | 6 months ago | |
| egeloen/serializer | 0.86 | — | 29 | 29 | 20 | 1K | 6 | 2.6 | 25.0 | MIT | — | |
| ajtis/xml-bundle | 0.85 | — | 0 | 0 | 0 | 68 | 0 | 5.9 | 26.5 | MIT | 9 months ago | |
| saloonphp/xml-wrangler | 0.84 | XML Wrangler is a PHP package that provides a simple, elegant API for reading and writing XML. Built on SimpleXML, it adds namespace support, fluent methods, and clean error handling, and pairs perfectly with Saloon to parse and build XML API responses with ease. | 428 | 429 | 18 | 255K | 4 | 17.6 | 42.4 | MIT | 7 months ago | |
| openlss/lib-array2xml | 0.83 | — | 307 | 322 | 25 | 394K | 2 | 4.3 | 44.3 | GPL-3.0 | 7 years ago | |
| theseer/fdomdocument | 0.83 | Archived PHP library extending DOMDocument to throw exceptions instead of warnings/notices, plus handy shortcuts like XPath query helpers and appendElement variants. Drop-in replacement for DOM with libxml support; works with PHP 5.3.3–8.1 (v1.6.7). | 247 | 256 | 17 | 137K | 0 | 1.5 | 26.8 | NOASSERTION | 4 years ago | |
| veewee/xml | 0.83 | veewee/xml provides a type-safe, declarative API for working with XML in PHP, covering DOM, encoding, error handling, memory-safe readers and writers, XSD schemas, and XSLT. It handles errors for you and supports spec compliance on PHP 8.4+. | 184 | 183 | 10 | 307K | 1 | 31.2 | 51.9 | MIT | 3 weeks ago | |
| desperado/xml-bundle | 0.82 | — | 9 | 9 | 9 | 326 | 1 | 2.2 | 21.8 | MIT | 11 years ago | |
| simplesamlphp/xml-common | 0.81 | — | 4 | 4 | 9 | 213K | 1 | 15.8 | 61.8 | LGPL-2.1 | 3 months ago | |
| laminas/laminas-xml2json | 0.81 | Convert XML to JSON in PHP via Laminas, with options for simple/pretty output and flexible handling of attributes, elements, and namespaces. Useful for bridging XML-based APIs and JSON consumers. | 14 | 14 | 3 | 9K | 0 | 0.8 | 38.4 | BSD-3-Clause | 4 years ago | |
| spatie/array-to-xml | 0.80 | Simple PHP utility to convert arrays into XML strings. Supports custom root element names and configurable key handling (e.g., converting spaces to underscores). Ideal for quickly generating XML output from structured array data. | 1,199 | 1,226 | 214 | 3M | 0 | 23.6 | 48.4 | MIT | 10 months ago | |
| simonschaufi/pretty-xml | 0.79 | A tiny PHP library for pretty printing and minifying XML with configurable indent size and character, since DomDocument can't configure indent distance. Install via Composer: simonschaufi/pretty-xml. | 22 | 22 | 10 | 62K | 0 | 21.5 | 55.1 | MIT | 1 month ago | |
| zendframework/zendxml | 0.75 | ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml. | 29 | 30 | 12 | 28K | 0 | 0.9 | 28.9 | BSD-3-Clause | 7 years ago |
How can I help you explore Laravel packages today?