mtownsend/xml-to-array
Easily convert XML into a clean, traversable PHP array and back again. This lightweight package handles nested elements, attributes, and namespaces, so you can consume XML feeds or APIs in Laravel and plain PHP projects without writing repetitive parsing code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mtownsend/collection-xml | 0.85 | mtownsend/collection-xml adds a simple toXml() macro to Laravel collections and arrays, making it easy to convert nested data into clean XML for feeds, APIs, exports, and legacy integrations. | 44 | 44 | 5 | 876 | 1 | 11.8 | 19.9 | MIT | 5 months ago | |
| mtownsend/request-xml | 0.85 | Adds simple XML response parsing to Laravel's HTTP client. Call xml() on responses to convert XML into arrays, making XML APIs as easy to work with as JSON. Lightweight and Laravel-friendly for legacy or SOAP-style endpoints. | 43 | 43 | 14 | 18K | 0 | 9.3 | 38.9 | MIT | 6 months ago | |
| mtownsend/response-xml | 0.85 | Return XML from your Laravel API as easily as JSON. This package adds a fluent xml() response helper that converts Eloquent models, collections, arrays, and paginators into clean, customizable XML, with support for custom root nodes, headers, and encoding — no manual string building required. | 104 | 107 | 22 | 42K | 6 | 12.0 | 40.3 | MIT | 6 months ago | |
| php-soap/encoding | 0.84 | A PHP library for SOAP encoding and decoding, converting PHP values to and from SOAP XML. It provides the encoding layer for SOAP clients and servers, with support for envelopes, headers, faults, and typed values through a clean, framework-agnostic API. | 10 | 10 | 6 | 89K | 0 | 19.5 | 63.0 | MIT | 3 weeks ago | |
| acfbentveld/xml | 0.84 | A Laravel/PHP package for working with XML. It offers a simple API to parse and read XML, convert XML into arrays or objects, and generate XML output, making common XML handling tasks cleaner and easier in Laravel applications. | 0 | 13 | — | 1 | — | 0.0 | 4.2 | — | — | |
| sabre/xml | 0.84 | 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 | |
| laminas/laminas-xml | 0.83 | 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 | |
| saloonphp/xml-wrangler | 0.83 | 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 | |
| prewk/xml-string-streamer | 0.83 | 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 | |
| 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 | 30K | 0 | 0.9 | 48.0 | Apache-2.0 | 3 years ago | |
| weblabel/data-transformer | 0.83 | weblabel/data-transformer is a Laravel/PHP package for transforming arrays, objects, and application data into clean, consistent output using reusable rules. It helps keep APIs, resources, and presentation logic organized and maintainable. | 0 | 0 | 0 | 57 | 0 | 0.0 | 24.4 | MIT | 4 years ago | |
| halilim/xml-iterator | 0.83 | halilim/xml-iterator offers a simple, memory-efficient way to iterate over XML in PHP. Built on XMLReader, it lets you loop through nodes with foreach and parse large XML files without loading them fully into memory—ideal for big feeds, exports, and streaming XML data. | 19 | — | 8 | — | 0 | 5.5 | — | MIT | 8 months ago |
|
| php-soap/xml | 0.83 | php-soap/xml is a lightweight XML library for PHP focused on SOAP. It offers namespace-aware parsing and generation so you can build, inspect, and transform SOAP envelopes and XML payloads through a small, predictable API. Designed for dependable XML handling in PHP applications. | 10 | — | 1 | — | 0 | 12.9 | — | MIT | 4 months ago |
|
| simplesamlphp/composer-xmlprovider-installer | 0.83 | Composer installer for SimpleSAMLphp XML provider packages. Automatically places XML metadata provider files in the correct SimpleSAMLphp directory during install/update, making distribution and setup of metadata providers seamless. | 0 | 0 | 0 | 159K | 0 | 0.0 | 55.3 | LGPL-2.1 | — | |
| simplesamlphp/xml-common | 0.82 | — | 4 | 4 | 9 | 213K | 1 | 16.2 | 62.0 | LGPL-2.1 | 3 months ago | |
| doctrine/oxm | 0.82 | 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 | — | |
| flowgistics/laravel-xml | 0.82 | 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. | 16 | 16 | 8 | 3K | 0 | 0.6 | 31.3 | MIT | 1 year ago | |
| noki/laravel-xml-converter | 0.82 | A lightweight Laravel package for converting XML to arrays and arrays or objects back to XML. It offers configurable handling for attributes, namespaces, and formatting, making XML integration simple in Laravel apps. | 32 | 32 | 0 | 2K | 0 | 0.2 | 24.4 | MIT | — | |
| bmatovu/laravel-xml | 0.82 | A Laravel package for working with XML. It converts XML requests and responses into arrays, adds XML response helpers and middleware, and lets your APIs accept and return XML alongside JSON, with configurable parsing and validation support. | 88 | 91 | 10 | 7K | 5 | 11.4 | 30.6 | MIT | 6 months ago | |
| mtdowling/jmespath.php | 0.82 | jmespath.php brings JMESPath to PHP applications, letting you declaratively extract elements from JSON-like PHP data using expressions such as foo.*.baz. Install via Composer; choose AstRuntime for low reuse or CompilerRuntime for faster compiled expressions. | 2,011 | 2,029 | 57 | 19M | 1 | 29.4 | 61.9 | MIT | 4 months ago |
How can I help you explore Laravel packages today?