PHPackages                             seffeng/rss - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. seffeng/rss

ActiveLibrary

seffeng/rss
===========

PHP extension rss

v0.1.1(5y ago)0285↓100%MITPHPPHP &gt;=7.1.3

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/seffeng/php-rss)[ Packagist](https://packagist.org/packages/seffeng/rss)[ Docs](https://github.com/seffeng/php-rss)[ RSS](/packages/seffeng-rss/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Rss -- 生成 Rss 结构
----------------

[](#rss----生成-rss-结构)

### 安装

[](#安装)

```
# 安装
$ composer require seffeng/rss
```

### 目录说明

[](#目录说明)

```
└─src
    ├─Rss.php
    └─Contracts
        Channel.php
        Item.php

```

### 示例

[](#示例)

```
/**
 * TestController.php
 * 示例
 */
namespace App\Http\Controllers;

use Seffeng\Rss\Rss;

class TestController extends Controller
{
    public function index()
    {
        $channel = [
            'title' => '频道名称。人们就是这样引用您的服务的。如果您的HTML网站包含与RSS文件相同的信息，则频道标题应与网站标题相同。',
            'link' => 'https://www.wuhuawu.com/rss',
            'description' => '描述频道的词组或句子。',
            'copyright' => 'copyright',
            'language' => 'zh-cn',
            'ttl' => 30,
            'generator' => '峰雪幽忧',
            'xmlns' => [
                'atom:link' => [
                    'href' => 'https://www.wuhuawu.com',
                    'rel' => 'self',
                    'type' => 'application/rss+xml'
                ],
                'atom:link2' => [
                    'href' => 'https://www.wuhuawu.com',
                    'rel' => 'self',
                    'type' => 'application/rss+xml'
                ],
            ],
        ];
        $item = [
            ['title' => 'composer 本地包引入', 'link' => 'https://www.wuhuawu.com/view/150', 'source' => ['text' => '链接来源', 'url' => 'https://www.wuhuawu.com'], 'pubDate' => 1665555555, 'guid' => 'https://www.wuhuawu.com/view/150'],
            ['title' => 'iptables配置模版', 'link' => 'https://www.wuhuawu.com/view/116', 'category' => 'linux', 'description' => 'iptables配置模版iptables -A INPUT -p tcp --dport 80 -j ACCEPT', 'source' => ['text' => '来源2', 'url' => 'https://www.wuhuawu.com/rss'], 'pubDate' => '2020-11-13 11:46', 'guid' => 'https://www.wuhuawu.com/view/116'],
        ];
        header('content-type:text/xml');
        print_r((new Rss())->toRss($channel, $item));exit;
    }
}
```

### 备注

[](#备注)

无

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3d8cc986a1ad37a55169b11812fea1cae31430dd8dbe1b3436dc58cc885bd?d=identicon)[seffeng](/maintainers/seffeng)

---

Top Contributors

[![seffeng](https://avatars.githubusercontent.com/u/3509779?v=4)](https://github.com/seffeng "seffeng (3 commits)")

---

Tags

phplaravelrssyii2seffeng

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seffeng-rss/health.svg)

```
[![Health](https://phpackages.com/badges/seffeng-rss/health.svg)](https://phpackages.com/packages/seffeng-rss)
```

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.2M74](/packages/dragon-code-support)[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3662.0k](/packages/rumenx-php-feed)[demi/php-gearman

Gearman job server workers helper

176.6k](/packages/demi-php-gearman)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
