spatie/array-to-xml
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| veewee/xml | 0.87 | Type-safe, declarative XML toolkit for PHP. Includes DOM helpers, xml_encode/xml_decode, safe error handling, memory-safe reader/writer, plus XSD and XSLT utilities. Spec-compliance ready (v4 for PHP 8.4+; v3 maintained). | 183 | 183 | 11 | 313K | 1 | 29.2 | 51.7 | MIT | 1 month ago | |
| desperado/xml-bundle | 0.86 | — | 9 | 9 | 11 | 349 | 1 | 2.3 | 22.2 | MIT | 11 years ago | |
| prewk/xml-string-streamer | 0.85 | 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. | 360 | 361 | 48 | 53K | 10 | 6.4 | 32.8 | MIT | 3 years ago | |
| ajtis/xml-bundle | 0.84 | — | 0 | 0 | 0 | 5 | 0 | 13.5 | 11.9 | MIT | 4 months ago | |
| zf1/zend-xml | 0.84 | 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 | — | 4 | — | 1 | 0.2 | — | BSD-3-Clause | — | |
| jailtonsc/laravel-response-xml | 0.84 | — | 47 | 48 | 15 | 6K | 10 | 3.5 | 31.4 | — | — | |
| thenorthmemory/xml | 0.83 | 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. | 9 | 9 | 0 | 21K | 0 | 0.9 | 45.9 | Apache-2.0 | 3 years ago | |
| openlss/lib-array2xml | 0.82 | — | 0 | 323 | — | 412K | — | 4.3 | 44.4 | — | — | |
| pear/xml_util | 0.81 | PEAR XML_Util provides handy helpers for working with XML: build attribute lists from arrays, generate tags, validate XML names, and more. Lightweight utility methods for creating and checking XML document parts in PHP. | 2 | 2 | 3 | 39K | 0 | 1.4 | 39.0 | — | 6 years ago | |
| spatie/value-object | 0.77 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,227 | 2,179 | 189 | 0 | 0 | 12.9 | — | MIT | 3 years ago | |
| spatie/data-transfer-object | 0.77 | PHP 8+ data transfer objects with “batteries included”: map and cast input arrays into typed DTOs, validate via attributes, and handle nested objects/collections. Note: package is deprecated; consider spatie/laravel-data or cuyz/valinor. | 2,227 | 2,192 | 189 | 509K | 0 | 12.9 | 23.0 | MIT | 3 years ago | |
| spatie/array-functions | 0.77 | Handy PHP array utilities from Spatie. Adds small, focused functions in the Spatie namespace (e.g., array_rand_value to pick a random value) to complement built-in array helpers. Install via Composer and use directly in your code. | 245 | 248 | 40 | 2K | 0 | 6.6 | 12.3 | MIT | 1 year ago | |
| spatie/fractalistic | 0.77 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 385 | 387 | 34 | 305K | 0 | 25.7 | 45.1 | MIT | 3 months ago | |
| masterminds/html5 | 0.76 | Standards-compliant HTML5 parser and serializer for PHP. Provides SAX-like event parsing, DOM tree building, namespace support, Composer install, and interoperability with QueryPath. Stable and widely used in production. | 1,781 | 1,797 | 121 | 8M | 29 | 33.6 | 63.1 | NOASSERTION | 10 months ago |
How can I help you explore Laravel packages today?