Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Xml Laravel Package

veewee/xml

Type-safe, declarative XML toolkit for PHP. Work with DOM safely, encode/decode XML like JSON, handle errors, and stream large files with memory-safe reader/writer. Includes XSD schema tools and XSLT transformations. Spec-compliant from v4 (PHP 8.4+).

View on GitHub
Deep Wiki
Context7

<XML />

XML without worries

This package aims to provide all tools for dealing with XML in PHP without worries. You will find a type-safe, declarative API that deals with errors for you!

Installation

composer require veewee/xml

Components

  • DOM: Operate on XML documents through the DOM API.
  • Encoding: Provides xml_encode() and xml_decode() so that you can deal with XML just like you deal with JSON!
  • ErrorHandling: Provides the tools you need to safely deal with XML.
  • Reader: Memory-safe XML reader.
  • Writer: Memory-safe XML writer.
  • XSD: Tools for working with XSD schemas.
  • XSLT: Transform XML documents into something else.

Spec compliance

Starting from v4, this package opt's-in to the spec compliance mode that has been released in PHP 8.4. Since these changes cannot be ported to older PHP versions, v3 of this package will be maintained actively for a longer period. This will give you a grace period to upgrade your PHP versions, packages, ... This little bump in the road is necessary to provide you with a better, more stable and spec-compliant package in the future.

Support table:

veewee/xml PHP LTS
3.0 - 3.1 8.1, 8.2, 8.3 NO
3.2 8.2, 8.3 NO
3.3+ 8.2, 8.3, 8.4, 8.5 YES
4.0+ 8.4+ YES

Roadmap

These components are not implemented yet, but have been thought about. Stay tuned if you want to use these!

About

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub. Please take a look at our rules before contributing your code.

License

veewee/xml is licensed under the MIT License.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport