承接 pixel418/feedify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pixel418/feedify

Composer 安装命令:

composer require pixel418/feedify

包简介

Feedify transforms any data to a feed in PHP

关键字:

README 文档

README

Feedify transforms any data to a feed in PHP.

Currently support RSS & SiteMap feed.

Code example

$writer = new \Feedify\Writer();

/* Add global description */
$writer->title = 'Title of my blog';
$writer->description = 'Description of my blog';
$writer->siteURL = 'http://example.com/url/to/my/blog';
$writer->feedURL = 'http://example.com/url/to/my/blog/feed';

/* Add items & formatters */
// Add data from your database
$writer->addItems($myData);
// The 'date' attribute could be used directly
$writer->addAttribute('date');
// The 'title' attribute corresponds to my 'name' attribute
$writer->addAttributeMap('title', 'name');
// The 'url' attribute needs a specific formatter
$writer->addAttributeFormatter('url', function($article){
  return 'http://example.com/article/'.$article->id;
});

/* Output */
// As a RSS
$writer->output(\Feedify\Writer::RSS_FORMAT);
// Or as a SiteMap
$writer->output(\Feedify\Writer::SITEMAP_FORMAT);

Author & Community

Feedify is under MIT License.

It is created and maintained by Thomas ZILLIOX.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固