Download the PHP package mblarsen/array-xml without Composer
On this page you can find all versions of the php package mblarsen/array-xml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mblarsen/array-xml
More information about mblarsen/array-xml
Files in mblarsen/array-xml
Download mblarsen/array-xml
More information about mblarsen/array-xml
Files in mblarsen/array-xml
Vendor mblarsen
Package array-xml
Short Description A simple yet expressive array syntax for building XML files
License MIT
Package array-xml
Short Description A simple yet expressive array syntax for building XML files
License MIT
Please rate this library. Is it a good library?
Informations about the package array-xml
array-xml
Because DOMDocument and SimpleXML sucks
- Easily build XML with associative arrays
- Succinct syntax for naming child elements, adding attributes, and more
- You can combine with
DOMDocument
if you really have to
Examples
- Easy to create attributes
- Children takes name from parent by default
Yields:
- Using
|
you can specify a differnt name of the children
Yields:
- Using
name_mappers
you can use, index and child values to construct the child element name and attributes
Yields:
- "Flatten" the parent element and put its children in its place using
<
.
Yields:
- Some parts are hard to model using arrays so you can "patch" with a
DOMDocument
Yields:
- Namespaces are just part of the name + an attribute on the root element.
Yields:
-
In cases you need a
DOMDocument
usetoDOM
- lets you set the version and encoding of the XML
Yields:
- Setting
declare
to false will exclude the XML declaration at the top
Yields:
- Conveniently create CDATA
Yields:
All versions of array-xml with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package mblarsen/array-xml contains the following files
Loading the files please wait ....