dev-master
9999999-devMapping of XML datatypes to PHP Classes with validation
Apache-2.0
The Requires
- php >=5.3.0
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Mapping of XML datatypes to PHP Classes with validation
This package is a bunch of PHP classes that map primitive XML data types and a
few other ones. The classes have some built-in validation checking so they throw
an Exception if you try to assign the wrong value type., (*1)
The best way to get started using this package is to install Composer and find the package on Packagist to add it as a dependency., (*2)
Example of basic usage:, (*3)
<?php require_once 'vendor/autoload.php'; $num = new XMLDatatype\Integer(99); echo "Ich habe $num luftballons"; #Output: Ich habe 99 luftballons
All the classes allow you to use these methods:, (*4)
And some have methods specific to the datatype. Feel free to explore the source code in ./src. If you want to add more data types or fix bugs then you are more than welcome to contribute., (*5)
Mapping of XML datatypes to PHP Classes with validation
Apache-2.0