https://github.com/zekfad/php-xml
PHP 8 Annotations based XML (de)serializer working on top of sabre/xml.
https://github.com/zekfad/php-xml
annotations php php-annotations php8 xml
Last synced: 9 months ago
JSON representation
PHP 8 Annotations based XML (de)serializer working on top of sabre/xml.
- Host: GitHub
- URL: https://github.com/zekfad/php-xml
- Owner: Zekfad
- License: isc
- Created: 2024-05-09T11:32:33.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T11:24:45.000Z (over 1 year ago)
- Last Synced: 2025-02-19T13:46:18.833Z (about 1 year ago)
- Topics: annotations, php, php-annotations, php8, xml
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zekfad/xml
PHP 8 Annotations based XML (de)serializer working on top of `sabre\xml`.
## Features
* Parse attributes (`float`, `int`, `bool`, `string`).
* Parse child nodes.
* Support for optional elements.
* Support for repeating elements (with optional min and max count check).
* Parse text content (and mixed nodes).
* Parse union types (via `XmlReparsePoint`).
* Specify default value (where PHP's not available), you can mix optional
and required parameters.
* Automatically implement `Sabre\Xml\XmlSerializable` and
`Sabre\Xml\XmlDeserializable` with `XmlElementTrait` trait or
extend `XmlElement` class.