This package has moved to skraeda/xmlary.
A collection of helper classes I've made to simplify my workflow when using lots of XML with php and extracted into a composer package. The primary function of the package is to generate XML from associative arrays and provide a convenient platform for encapsulating that XML generation in its own object. All classes in this package will be in the Gunsobal\Xmlary namespace.
Install the package into your project via composer or download the source code here on GitHub.
composer install gunsobal/xmlary
Xmlary is open-sourced software licensed under the MIT License
Composer package is based on the template by Darwin Biler.
- Added changelog
- Refactord Xmlify, might cause builds to fail if they were creating empty elements with attributes when building arrays of arrays.
- Removed XmlParser, XmlConverter and XsdValidator.
- Merged my PHP Utils library with this library under Support class.
- Version, encoding and data properties in XmlMessage are now private.
- XmlMessage now throws an exception if the build method doesn't exist.
- XmlMessage now checks if required property is in correct format.
- XmlMessage now checks if name and build properties are strings and only overwrites default values if they are.
- Updated documenation.
- Added v2.0.0 tag.
- Made XmlMessage an abstract class as it should've been from the start.
- Removed build property from XmlMessage and made build an abstract function that must be implemented to adhere to the template pattern.
- Refactored support tests to smaller units.
- Updated docs to reflect slight change to XmlMessage.
- Removed unused functions from support class.
- Removed custom exceptions in favour of PHP exceptions.
- Deleted docs about exceptions.
- Updated comment blocks for phpdoc conventions.
- No longer provides support for PHP versions less than 7
- Updated PHPUnit devDependency
- Integrated travis-ci
If you encounter any bugs or issues please report them here on GitHub so I can look into them.