PHPackages                             popphp/pop-feed - 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. [Framework](/categories/framework)
4. /
5. popphp/pop-feed

AbandonedLibrary[Framework](/categories/framework)

popphp/pop-feed
===============

Pop Feed Component for Pop PHP Framework

2.1.0p1(9y ago)2863New BSDPHPPHP &gt;=5.4.0

Since Jul 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/popphp/pop-feed)[ Packagist](https://packagist.org/packages/popphp/pop-feed)[ Docs](http://www.popphp.org/)[ RSS](/packages/popphp-pop-feed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

pop-feed
========

[](#pop-feed)

END OF LIFE
-----------

[](#end-of-life)

The `pop-feed` component v2.1.0 is now end-of-life and will no longer be maintained.

[![Build Status](https://camo.githubusercontent.com/0f5aeb2927b491afd087594be135454b1f3dedc5ab137ecbf55bbe021496d471/68747470733a2f2f7472617669732d63692e6f72672f706f707068702f706f702d666565642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/popphp/pop-feed)[![Coverage Status](https://camo.githubusercontent.com/e0427b62ad10c3c1fba56e0a028a931eed225b64764df3f89ac4d70551ca36d1/687474703a2f2f63632e706f707068702e6f72672f636f7665726167652e7068703f636f6d703d706f702d66656564)](http://cc.popphp.org/pop-feed/)

OVERVIEW
--------

[](#overview)

`pop-feed` is a component for generating and parsing web feeds while trying to normalize the common nodes and items contained within a feed.

`pop-feed`is a component of the [Pop PHP Framework](http://www.popphp.org/).

INSTALL
-------

[](#install)

Install `pop-feed` using Composer.

```
composer require popphp/pop-feed

```

BASIC USAGE
-----------

[](#basic-usage)

### Generating a feed

[](#generating-a-feed)

```
use Pop\Feed\Writer;

$headers = [
    'published' => date('Y-m-d H:i:s'),
    'author'    => 'Test Author'
];

$items = [
    [
        'title'       => 'Some Item #1',
        'link'        => 'http://www.popphp.org/',
        'description' => 'This is the description of item #1',
        'published'   => date('Y-m-d H:i:s')
    ],
    [
        'title'       => 'Some Item #2',
        'link'        => 'http://popcorn.popphp.org/',
        'description' => 'This is the description of item #2',
        'published'   => date('Y-m-d H:i:s')
    ]
];

$feed = new Writer($headers, $items);
$feed->render();
```

Rendered as an RSS feed:

```

        Tue, 21 Jul 2015 18:09:08 -0500
        Test Author

            Some Item #1
            http://www.popphp.org/
            This is the description of item #1
            Tue, 21 Jul 2015 18:09:08 -0500

            Some Item #2
            http://popcorn.popphp.org/
            This is the description of item #2
            Tue, 21 Jul 2015 18:09:08 -0500

```

Or, rendered as an Atom feed:

```
$feed = new Writer($headers, $items);
$feed->setAtom();
$feed->render();
```

```

    Tue, 21 Jul 2015 18:10:39 -0500

        Test Author

        Some Item #1

        This is the description of item #1
        Tue, 21 Jul 2015 18:10:39 -0500

        Some Item #2

        This is the description of item #2
        Tue, 21 Jul 2015 18:10:39 -0500

```

### Parsing a feed

[](#parsing-a-feed)

If the feed is an RSS feed:

```
use Pop\Feed\Reader;
use Pop\Feed\Format\Rss;

$feed = new Reader(new Rss('http://www.domain.com/rss'));

foreach ($feed->items as $item) {
    print_r($item);
}
```

If the feed is an Atom feed:

```
use Pop\Feed\Reader;
use Pop\Feed\Format\Atom;

$feed = new Reader(new Atom('http://www.domain.com/feed'));

foreach ($feed->entries as $entry) {
    print_r($entry);
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~147 days

Total

5

Last Release

3362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c19dee900e9e20039c723cc403f76b5c22ac2dddb3f86773ae64fb082d4949e2?d=identicon)[nicksagona](/maintainers/nicksagona)

---

Top Contributors

[![nicksagona](https://avatars.githubusercontent.com/u/898670?v=4)](https://github.com/nicksagona "nicksagona (13 commits)")

---

Tags

phppoppop phpfeed readerfeed writerrss feedsatom feeds

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/popphp-pop-feed/health.svg)

```
[![Health](https://phpackages.com/badges/popphp-pop-feed/health.svg)](https://phpackages.com/packages/popphp-pop-feed)
```

###  Alternatives

[popphp/popphp

Pop PHP Framework, a lightweight, robust PHP framework

5713.5k9](/packages/popphp-popphp)[popphp/popphp-framework

The Pop PHP Framework - Full Installation

686.5k1](/packages/popphp-popphp-framework)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[popphp/pop-pdf

PHP PDF library for generating and importing PDF documents. A component of the Pop PHP Framework

207.8k1](/packages/popphp-pop-pdf)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1018.5k13](/packages/popphp-pop-http)

PHPackages © 2026

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