定制 mparaiso/simple-rss 二次开发

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

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

mparaiso/simple-rss

Composer 安装命令:

composer require mparaiso/simple-rss

包简介

A simple class to generate RSS feeds

README 文档

README

Build Status

A rss feed generator

author : M.Paraiso contact: mparaiso@online.fr

status : Work in Progress

Basic Usage

$this->channel = array(
    "title"       => "My rss channel",
    "link"        => "http://alink",
    "description" => "the description",
    "lang"        => "en-en",
    "copyright"   => "mparaiso",
    "webmaster"   => "mparaiso@yahoo.php",
    "image"       => array(
        "title"  => "the image",
        "url"    => "imageurl",
        "link"   => "http://imagelink",
        "width"  => "500",
        "height" => "500",
    ),
    "items"       => array(
        array(
            "title"       => "item title",
            "description" => "item description",
            "guid"        => "the guid",
            "isPermalink" => 1,
            "pubDate"     => new \DateTime(),
        ),
    )
);
$rssGenerator  = new Mparaiso\Rss\SimpleRss($this->channel);

$rss = $rssGenerator->generate();

result :

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>My rss channel</title>
        <link>http://alink</link>
        <description>the description</description>
        <lang>en-en</lang>
        <copyright>mparaiso</copyright>
        <webMaster>mparaiso@yahoo.php</webMaster>
        <image>
            <title>the image</title>
            <url>imageurl</url>
            <link>http://imagelink</link>
            <width>500</width>
            <height>500</height>
        </image>
        <item>
            <title>item title</title>
            <description>item description</description>
            <guid isPermalink='1'>the guid</guid>
            <pubDate>Thu, 21 Mar 2013 15:49:22</pubDate>
        </item>
    </channel>
</rss>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固