dmx / simple-xml-parser
A simple XML Parser which parses an XML into a normalized array based on SimpleXMLElement.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 352
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.2.1
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
Requires (Dev)
- ext-mbstring: *
- friendsofphp/php-cs-fixer: ^2.15
- mockery/mockery: ^1.2
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2024-10-09 19:57:48 UTC
README
A simple XML Parser which parses an XML into a normalized array based on SimpleXMLElement.
Requirements
- PHP >= 7.2
- Extensions
- json
- simplexml
- libxml
- Extensions
- Composer >= 1.5
Installation
Use composer to install and use this package in your project.
Install them with
composer require "dmx/simple-xml-parser"
and you are ready to go!
Usage
Example:
$myXMLContent = <<<XML <xml> <foo> <bar awesome="true">this is a example</bar> </foo> </xml> XML; $myContent = (new DMX\SimpleXML\Parser($myXMLContent))->toArray();
Development - Getting Started
See the CONTRIBUTING file.
Changelog
See the CHANGELOG file.
License
See the LICENSE file.