Sources
eklundchristopher
released this
04 May 21:41
·
8 commits
to master
since this release
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);