Download the PHP package d-shorkin/arrayable-xml without Composer
On this page you can find all versions of the php package d-shorkin/arrayable-xml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package arrayable-xml
Arrayable XML
PHP library for parsing XML to array. This library can formatting attributes of xml
Installation
Install via composer:
Usage
Result:
Laravel
If you does not use php artisan package:discover
command. You need add ArrayableXmlProvider
to config.
config/app.php
Basic laravel usage:
Class reference
Dshorkin\ArrayableXml\ArrayableXmlFactory
Create
Param | Type | Default | Description |
---|---|---|---|
str | string | XML string | |
childrenFieldKey | string | children | Parse child nodes in children property, if you send empty string child nodes will be merge with attributes |
textFieldKey | string | text | Text content will be parse in property with this key |
miniElements | bool | true | If you disable it all elements will be return array of children. By default if parent has single child that will be returned alone |
Create From SimpleXmlElement
All versions of arrayable-xml with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package d-shorkin/arrayable-xml contains the following files
Loading the files please wait ....