This is a simple set of classes to parse a ReaXML formatted XML file into usable PHP objects.
ReaXML Feed schema and information from http://reaxml.realestate.com.au/propertyList.dtd and http://reaxml.realestate.com.au/docs/reaxml1-xml-format.html
composer require thinkerytim/thinkery-reaxml-parser
require_once('vendor/autoload.php');
use ThinkReaXMLParser\Parser;
$parser = new Parser($full_path_to_xml_file);
$data = $parser->parse();
foreach ($data as $listing) {
echo $listing->getUniqueId();
}
- Fork it
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
This software is released under the Apache v2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) 2018 by The Thinkery LLC. All rights reserved. www.thethinkery.net