定制 netbrothers-gmbh/nb-feed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

netbrothers-gmbh/nb-feed

最新稳定版本:v0.0.4

Composer 安装命令:

composer require netbrothers-gmbh/nb-feed

包简介

Fetch RSS- and Atom-Feeds and save to JSON

关键字:

README 文档

README

build status

NetBrothers NbFeed

This library pulls an RSS feed to your hard disk, transforms the items to an array and saves the results as a JSON file on your hard disk.

Installation

On the command prompt, change into your project's root directory and execute:

composer require netbrothers-gmbh/nb-feed

Configuration

NbFeed needs a readable and writeable directory. All other configurations are optional. The configuration depends on your environment. See the content of ConfigService.

Variable Description Default
maxEntriesToSave maximum number of feed items to be saved 0 (all)
cacheMaxAge maximum caching time of the file (in seconds) 1800 sec
storagePath absolute path to a readable and writeable directory null
feedFileName name of the file to write to/read from nb-feed

Example

There is an example file. To use it:

  1. Checkout the repository,
  2. run composer install --no-dev,
  3. run the example: php ./example/netbrothers-feed.php.

Feel free to use the example file as a starting point for your own purposes.

Licence

MIT

Authors

nb.logo

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-23