veewee / xml
XML without worries
Fund package maintenance!
veewee
Installs: 2 228 262
Dependents: 14
Suggesters: 2
Security: 0
Stars: 175
Watchers: 5
Forks: 8
Open Issues: 1
Requires
- php: ~8.4.0
- ext-dom: *
- ext-libxml: *
- ext-xml: *
- ext-xmlreader: *
- ext-xmlwriter: *
- ext-xsl: *
- azjezz/psl: ^3.0
- webmozart/assert: ^1.10
Requires (Dev)
- php-standard-library/psalm-plugin: ^2.2
- symfony/finder: ^7.1
- veewee/composer-run-parallel: ^1.0.0
- vimeo/psalm: ^5.4
- 4.x-dev
- 4.1.0
- 4.0.0
- 4.0.0-alpha1
- 3.x-dev
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.x-dev
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.7.0
- 1.6.0
- 1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.1
- v0.2.0
- v0.1.0
- dev-allow-empty-docs-on-configurators
This package is auto-updated.
Last update: 2024-12-08 11:24:02 UTC
README
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()
andxml_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:
Roadmap
These components are not implemented yet, but have been thought about. Stay tuned if you want to use these!
- External: Saxon/C: XSLT 3.0/2.0, XQuery 3.1, XPath 3.1 and Schema Validation 1.0/1.1
- Awaiting PHP8 support: https://saxonica.plan.io/issues/4842
External: XSLT2(prefer saxon/c)
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.