simonschaufi/pretty-xml
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| shanethehat/pretty-xml | 0.84 | Pretty XML is a lightweight PHP package for formatting raw XML into clean, readable, indented output. It wraps DOMDocument to add proper line breaks and indentation, making XML easier to debug, log, or display. Simple to install and use in any PHP or Laravel project. | 22 | 24 | 10 | 5K | 0 | 18.4 | 37.6 | MIT | 1 month ago | |
| acfbentveld/xml | 0.82 | 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 | — | — | |
| thenorthmemory/xml | 0.81 | 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 | |
| mtownsend/xml-to-array | 0.81 | 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. | 116 | 123 | 14 | 202K | 3 | 19.1 | 51.9 | MIT | 1 month ago | |
| mtownsend/collection-xml | 0.81 | 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 | |
| spatie/array-to-xml | 0.81 | 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.4 | 48.3 | MIT | 10 months ago | |
| halilim/xml-iterator | 0.81 | 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 | 9 months ago |
|
| lastdragon-ru/phpunit-xml | 0.80 | Tools for working with PHPUnit’s XML configuration: parse, build, and validate phpunit.xml files programmatically. Useful for CI automation, config generation, and upgrades/migrations between PHPUnit versions, with a focused API designed for PHP projects. | 0 | 0 | 0 | 2 | 0 | 0.0 | 6.6 | MIT | — | |
| saloonphp/xml-wrangler | 0.80 | 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 | 246K | 4 | 17.5 | 42.1 | MIT | 7 months ago | |
| simplesamlphp/xml-common | 0.80 | — | 4 | 4 | 9 | 213K | 1 | 15.8 | 61.8 | LGPL-2.1 | 3 months ago | |
| flowgistics/laravel-xml | 0.80 | 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 | |
| sabre/xml | 0.80 | 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.80 | — | 29 | 29 | 20 | 1K | 6 | 2.6 | 25.0 | MIT | — | |
| prewk/xml-string-streamer | 0.80 | 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 | |
| schleuse/dindent | 0.80 | Dindent is a regex-based HTML beautifier for PHP that indents markup from template engines without rebuilding, sanitizing, or otherwise altering the document—unlike DOM or Tidy. Ideal for debugging messy output. Install via Composer: schleuse/dindent. | 3 | 3 | 2 | 2K | 0 | 19.5 | 43.0 | NOASSERTION | 1 month ago | |
| michael-rubel/laravel-formatters | 0.80 | Laravel Formatters provides a clean, extensible set of formatter classes for common tasks like money, phone numbers, names, dates, and more. Formatters auto-resolve through the container and support method chaining, making consistent formatting simple throughout your app. | 94 | 94 | 7 | 416 | 0 | 1.2 | 10.1 | MIT | 1 year ago | |
| laminas/laminas-xml2json | 0.80 | 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 | |
| bmatovu/laravel-xml | 0.80 | 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 | |
| prewk/xml-faker | 0.80 | Generate fake XML easily for tests and demos with prewk/xml-faker. Define elements and attributes, create realistic sample documents fast, and avoid hand-writing fixtures. Lightweight helper for PHP projects that need quick XML payloads. | 10 | 10 | 0 | 20 | 2 | 0.5 | 6.2 | MIT | — | |
| zendframework/zendxml | 0.80 | 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?