XML Wrangler offers a seamless experience for developers, enabling you to read various XML files regardless of complexity or size. It handles documents with intricate namespaces and large files with ease, and ensures proper validation to pinpoint any inconsistencies.

XML Wrangler is an intuitive PHP library crafted to simplify XML reading and writing, offering a user-friendly experience with Laravel-like methods. Compatible with any PHP project using version 8.1 or higher, it boasts a wealth of features that make working with XML a breeze.

* Dot Notation: Using dot-notation to query an XML document

* Low memory usage: XML Wrangler can handle reading large XML files

* Laravel-like: methods that you can use like `sole`, `first`, `firstOrFail`, `collect`, etc.

* Lazy methods: Read massive XML files and loop over each node in a loop

* XML Generation: Write XML using arrays

* XML Parsing: Provides functionality to parse XML documents.

* DTOs: Use the `Element` DTO element to define attributes and namespaces

* Error Handling: It has proper error handling unlike SimpleXML

* XPath Queries: Supports XPath queries to extract data from XML.

* Editing and Manipulation: Enables the modification and manipulation of XML data.

* Simple API: Offers a straightforward API for working with XML.

* Namespace Support: Handles XML namespaces.

You will want to check out the https://github.com/saloonphp/xml-wrangler/blob/v1/.github/README.md to learn about everything you can do with this package, but here's an example of reading XML:

To get started with this package, you can get full installation and usage instructions on GitHub at https://github.com/saloonphp/xml-wrangler on GitHub.

Reply to this note

Please Login to reply.

Discussion

No replies yet.