Skip to content

Commit 1c53ccd

Browse files
author
Doug Bird
committed
Merge branch 'master' of github.com:katmore/micro-encode
2 parents 9ca944e + 0e5e2d3 commit 1c53ccd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ composer require katmore/micro-encode
1212
* [Encoding data to HTML](#usage---htmlencoder)
1313

1414
### Usage - XmlEncoder
15-
Example encoding an object to XML:
15+
The [`XMLEncoder`](./src/MicroEncode/XmlEncoder.php) class facilitates serialization of data into an XML document. The [PHP data types](http://php.net/manual/en/language.types.intro.php) supported are: [`boolean`](http://php.net/manual/en/language.types.boolean.php), [`integer`](http://php.net/manual/en/language.types.integer.php), [`float`](http://php.net/manual/en/language.types.float.php), [`string`](http://php.net/manual/en/language.types.string.php), [`array`](http://php.net/manual/en/language.types.array.php), [`object`](http://php.net/manual/en/language.types.object.php), and [`null`](http://php.net/manual/en/language.types.null.php). The serialized XML adheres to the [Flat XML Schema](https://github.com/katmore/flat/wiki/xmlns) specification.
16+
17+
The following is an example of encoding an associative array to XML:
1618
```php
1719
<?php
1820
use MicroEncode\XmlEncoder;
@@ -33,7 +35,9 @@ The above code should output the following XML:
3335
```
3436

3537
### Usage - HtmlEncoder
36-
Example encoding an object to HTML:
38+
The [`HtmlEncoder`](./src/MicroEncode/HtmlEncoder.php) class facilitates serialization of data into HTML. The [PHP data types](http://php.net/manual/en/language.types.intro.php) supported are: [`boolean`](http://php.net/manual/en/language.types.boolean.php), [`integer`](http://php.net/manual/en/language.types.integer.php), [`float`](http://php.net/manual/en/language.types.float.php), [`string`](http://php.net/manual/en/language.types.string.php), [`array`](http://php.net/manual/en/language.types.array.php), [`object`](http://php.net/manual/en/language.types.object.php), and [`null`](http://php.net/manual/en/language.types.null.php).
39+
40+
The following is an example of encoding an associative array to HTML:
3741
```php
3842
<?php
3943
use MicroEncode\HtmlEncoder;

0 commit comments

Comments
 (0)