thinkerytim / thinkery-reaxml-parser
PHP Parser Class for REA XML
v0.9-alpha
2018-07-30 22:30 UTC
Requires
- php: >=5.6.0
- nesbot/carbon: ^1.21
Requires (Dev)
- phpunit/phpunit: ^5.3
This package is auto-updated.
Last update: 2024-09-16 08:24:08 UTC
README
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
Installation
composer require thinkerytim/thinkery-reaxml-parser
Usage
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();
}
Contributing
- 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
License
This software is released under the Apache v2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Copyright
Copyright (c) 2018 by The Thinkery LLC. All rights reserved. www.thethinkery.net