matejch/yii2-xmlhelper

Simple xml helper class for loading xml

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:yii2-extension

1.0.0 2021-11-16 21:20 UTC

This package is auto-updated.

Last update: 2024-04-17 03:25:24 UTC


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