Download the PHP package katmore/micro-encode without Composer
On this page you can find all versions of the php package katmore/micro-encode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download katmore/micro-encode
More information about katmore/micro-encode
Files in katmore/micro-encode
Package micro-encode
Short Description xml encoder and html generator
License MIT GPL-3.0+
Homepage https://github.com/katmore/micro-encode
Informations about the package micro-encode
MicroEncode
xml encoder and html generator
Installation
use composer to add MicroEncode to your PHP project:
Usage
- Encoding data to XML - XmlEncoder Usage
- Generating HTML from data - HtmlEncoder Usage
XmlEncoder Usage
The Flat XML Schema specification.
The following is an example of encoding associative array data into an XML document:
The above code should output the following XML:
HtmlEncoder Usage
The null
.
The following is an example of generating HTML from associative array data:
The above code should output the following HTML:
The above HTML would render into set of unordered list items as follows:
- my_example_1: my 1st data value
- my_example_2: my 2nd data value
Unit Tests
coverage.txt
: unit test coverage reportphpunit.xml
: PHPUnit configuration filetests/Unit
: source code for unit tests
To perform unit tests, execute phpunit located in the vendor/bin
directory.
The tests.sh
wrapper script is provided for convenience.
Legal
Copyright
MicroEncode - https://github.com/katmore/micro-encode
Copyright (c) 2012-2018 Doug Bird. All Rights Reserved.
License
MicroEncode is copyrighted free software. You may redistribute and modify it under either the terms and conditions of the "The MIT License (MIT)"; or the terms and conditions of the "GPL v3 License". See LICENSE and GPLv3.