Download the PHP package nilportugues/xml without Composer
On this page you can find all versions of the php package nilportugues/xml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nilportugues/xml
More information about nilportugues/xml
Files in nilportugues/xml
Package xml
Short Description XML transformer outputting valid API responses.
License MIT
Homepage http://nilportugues.com
Informations about the package xml
XML Transformer
Installation
Use Composer to install the package:
Usage
Given a PHP Object, and a series of mappings, the XML Transformer will represent the given data as a XML object.
For instance, given the following piece of code, defining a Blog Post and some comments:
And a Mapping array for all the involved classes:
Calling the transformer will output a valid XML response using the correct formatting:
Output:
Quality
To run the PHPUnit tests at the command line, go to the tests directory and issue phpunit.
This library attempts to comply with PSR-1, PSR-2, PSR-4 and PSR-7.
If you notice compliance oversights, please send a patch via Pull Request.
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
Support
Get in touch with me using one of the following means:
- Emailing me at [email protected]
- Opening an Issue
Authors
License
The code base is licensed under the MIT license.