thinkerytim / thinkery-reaxml-parser
REA XML 解析器 PHP 类
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
这是一个简单的类集,用于将 ReaXML 格式的 XML 文件解析成可用的 PHP 对象。
ReaXML Feed 架构和信息来自 http://reaxml.realestate.com.au/propertyList.dtd 和 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();
}
贡献
- 分支它
- 创建你的功能分支:
git checkout -b my-new-feature - 提交你的更改:
git commit -am 'Add some feature' - 推送到分支:
git push origin my-new-feature - 提交拉取请求
许可证
本软件在 Apache v2.0 许可证下发布: https://apache.ac.cn/licenses/LICENSE-2.0
版权
版权所有 (c) 2018 由 Thinkery LLC 所有。保留所有权利。 www.thethinkery.net