tomflidr/sreality-configurable-rss
Composer 安装命令:
composer require tomflidr/sreality-configurable-rss
包简介
Sreality.cz Custom Configurable RSS Channel With Images And Google Maps.
README 文档
README
Sreality.cz FREE Custom Configurable RSS Channel With Images And Google Maps.
Instalation
# load project into 'development' directory, if directory doesn't exists, create it
composer create-project tomflidr/sreality-configurable-rss
- create single database with single table in your MySQL/MariaDB server to cache loaded items:
CREATE DATABASE `sreality` /*!40100 COLLATE 'utf8_general_ci' */ USE `sreality`; CREATE TABLE `rss_estates` ( `id` VARCHAR(255) NOT NULL, `data` TEXT NOT NULL, INDEX `id` (`id`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB; - open
config.phpin your favorite text editor- set up
$mySqlConfigarray to connect into database for cached items - Get and copy Google Maps API key into
$googleMapsApiKey - configure
$realEstatesSearchConfigarray by commenting and uncommenting values you want or don't want
- set up
- call
index.phpover HTTP(s) in your favorite web server (Apache/IIS/Nginx) and follow instructions there:-)
TODO
- implement RSS items date property
- before previous data are truncated in db, select them, compare guids from old items and new items and if there is the same guid, transfer date from previous item already in database into new item. For items without any date - add current time(). Then truncate previous data and insert new items.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-01-02