Releases: pandaac/exporter
Releases · pandaac/exporter
Engine specific settings
v2.1.1 Engine specific settings
Breaking changes to Sources
Instead of having to create a new exporter object for separate sources, you may now use the same exporter object for everything, and just pass the source into the parse method.
use pandaac\Exporter\Parsers\XMLSource;
use pandaac\Exporter\Sources\StringContent;
$exporter->parse(new XMLSource(
new StringContent('<online><player id="1" /><player id="2" /></online>')
));
XML Error Handling
Improvements have been made to how we handle XML validation errors.
Sources
Added the ability to parse content from other sources than files. The only available source at the moment is StringContent
. With it, a new parser (XMLSource
) was also added to parse any XML file.
use pandaac\Exporter\Parsers;
use pandaac\Exporter\Exporter;
use pandaac\Exporter\Sources\StringContent;
$exporter = new Exporter(
new StringContent('<?xml version="1.0" encoding="UTF-8"?><custom></custom>')
);
$response = $exporter->parse(new Parsers\XMLSource);
v2.0.1
Major overhaul of the code, including features such as automatic XML parsing, improved performance, improved semantics among other things.
v1.0.0
Update README.md