matejch / yii2-xmlhelper
Simple xml helper class for loading xml
Package info
github.com/Matej-ch/yii2-xmlHelper
Type:yii2-extension
pkg:composer/matejch/yii2-xmlhelper
1.0.0
2021-11-16 21:20 UTC
Requires
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- yiisoft/yii2: ~2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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