Download the PHP package maniaplanet/manialib-xml without Composer
On this page you can find all versions of the php package maniaplanet/manialib-xml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maniaplanet/manialib-xml
More information about maniaplanet/manialib-xml
Files in maniaplanet/manialib-xml
Download maniaplanet/manialib-xml
More information about maniaplanet/manialib-xml
Files in maniaplanet/manialib-xml
Vendor maniaplanet
Package manialib-xml
Short Description Object-oriented PHP library for writing XML.
License MIT
Homepage https://github.com/maniaplanet/manialib-xml
Package manialib-xml
Short Description Object-oriented PHP library for writing XML.
License MIT
Homepage https://github.com/maniaplanet/manialib-xml
Keywords xml
Please rate this library. Is it a good library?
Informations about the package manialib-xml
ManiaLib\XML
ManiaLib\XML is an object-oriented PHP library for writing XML.
Installation
Features
- Simple and flexible object-oriented architecture
- Configurable rendering drivers
- Symfony\Component\EventDispatcher integration
Architecture
- You construct a tree of
ManiaLib\XML\Node
. - Setter methods return the element for chaining (eg.
$node->setNodeName('foo')->setNodeValue('bar');
. ManiaLib\XML\Node::create()
instanciates the object and returns it for easy chaining (eg.Node::create()->setNodeName('foo');
).- If you're running PHP 5.4+ you can use class member access on instantiation instead eg.
(new Node)->setNodeName('foo');
. - See
ManiaLib\XML\NodeInterface
for reference. - You then pass the root
Node
to an instance ofManiaLib\XML\Rendering\Renderer
.
Examples
It will output:
More in /examples directory
Tests
A simple suite tests .php files in the /examples directory against their associated .xml renders. To run the tests we recommand:
- PHPUnit system-wide installation via Composer
- Run
composer install
- Run
phpunit
Todo
- XMLComment
- PhpDoc
- Raw node value
- Other unsupported Node features?
All versions of manialib-xml with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package maniaplanet/manialib-xml contains the following files
Loading the files please wait ....