matejch / yii2-xmlhelper
Simple xml helper class for loading xml
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:yii2-extension
Requires
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- yiisoft/yii2: ~2.0.0
README
Simple xml helper class for loading xml
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require matejch/yii2-xmlhelper:1.0
or add
"matejch/yii2-xmlhelper": "^1.0"
to the require section of your composer.json
file.
Usage
(new XmlHelper())->parse($xmlContent);
By default, parses as array, change by setting asArray parameter to false