visol/idx-reader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

visol/idx-reader

最新稳定版本:2.0.0

Composer 安装命令:

composer require visol/idx-reader

包简介

Read IDX reader - Internet Data Exchange is a standard to describe properties such as houses, appartment, etc... commonly used in the real estate industry.

README 文档

README

Library to read and parse IDX data. Internet Data Exchange (IDX) is a standard to describe properties such as houses, appartment, etc... commonly used in the real estate industry.

https://en.wikipedia.org/wiki/Internet_Data_Exchange

See FieldParser.php for the implemented field names and idx-format-v3.01-description.xlsx for a detailed description of the IDX 3.01 standard.

Usage

$contents = file_get_contents('sample.idx');
$reader = new Visol\IdxReader\IdxReader();
$reader->load($contents);

We can also load a dataset from a file:

$reader = new Visol\IdxReader\IdxReader()
$reader->loadFromFile('sample.idx');

We can retrieve all records or count them:

// Returns an array of records
$reader->getRecords();

// Returns an integer
$reader->countRecords();

Complete example:

$reader = new Visol\IdxReader\IdxReader()
$reader
    ->forceUtf8()
    ->loadFromFile('sample.idx')
    ->getRecords();

Contribute

Contributions to the package are always welcome!

Unit Tests

To run the unit tests simply:

./phpunit tests

License

All contents of this package are licensed under the MIT license.

统计信息

  • 总下载量: 2.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-02