PHPackages                             vinelab/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. [API Development](/categories/api)
4. /
5. vinelab/rss

ActiveLibrary[API Development](/categories/api)

vinelab/rss
===========

An elegant RSS 2.0 and Atom client.

v2.0.3(4y ago)5043.1k16[1 issues](https://github.com/Vinelab/RSS/issues)1MITPHPPHP &gt;=7.1CI failing

Since Dec 16Pushed 4y ago4 watchersCompare

[ Source](https://github.com/Vinelab/RSS)[ Packagist](https://packagist.org/packages/vinelab/rss)[ RSS](/packages/vinelab-rss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (10)Used By (1)

[![Build Status](https://camo.githubusercontent.com/8c7554bda8777fcfd6beb2b27d2a4bddb751258d610ccec832d0ac771a83555e/68747470733a2f2f7472617669732d63692e6f72672f56696e656c61622f5253532e706e67)](https://travis-ci.org/Vinelab/RSS)

RSS Client
==========

[](#rss-client)

A simple and radical RSS client that supports RSS 0.92, 2.0 and Atom feeds.

Synopsis
--------

[](#synopsis)

**Fetch Feeds**

```
$rss->feed('https://stackoverflow.com/feeds/tag?tagnames=php&amp;sort=newest');
```

**Parse Feeds**

```
$feed->info();
$feed->articles();
```

Installation
------------

[](#installation)

`composer require vinelab/rss`

#### Laravel Setup

[](#laravel-setup)

Edit **app.php** and add `'Vinelab\Rss\RssServiceProvider',` to the `'providers'` array.

It will automatically alias itself as **RSS** so no need to aslias it in your **app.php** unless you would like to customize it. In that case edit your **'aliases'** in **app.php** adding ` 'MyRSS'    => 'Vinelab\Rss\Facades\RSS',`

Usage
-----

[](#usage)

### Fetch an RSS feed

[](#fetch-an-rss-feed)

```
require 'vendor/autoload.php';

use Vinelab\Rss\Rss;

$rss = new Rss();
$feed = $rss->feed('https://stackoverflow.com/feeds/tag?tagnames=php&amp;sort=newest');

// $feed is now an instance of Vinelab\Rss\Feed

$info = $feed->info();
$count = $feed->articlesCount();
$articles = $feed->articles();
```

#### Feed Info

[](#feed-info)

```
$info = $feed->info();

echo json_encode($info);
```

```
{
   "title": "Newest questions tagged php - Stack Overflow",
   "subtitle": "most recent 30 from stackoverflow.com",
   "updated": "2020-07-16T19:14:29Z",
   "id": "https://stackoverflow.com/feeds/tag?tagnames=php&sort=newest"
 }
```

#### Feed Articles

[](#feed-articles)

**Accessing Articles**

```
$articles = $feed->articles();
```

This will give you an instance of `Vinelab\Rss\ArticlesCollection` which is an extension of [Illuminate\\Support\\Collection](https://laravel.com/docs/7.x/collections). Each item of this collection is an instance of `Vinelab\Rss\Article` from which you can safely access any of the properties in the entry.

**Article**

Is an object which properties are dynamically accessed such as `$article->title`.

Whichever fields exist in the feed's entry will be accessible as read-only property, making `Article` an immutable object.

You may also call `isset($article->someField)` to check whether the field exists for a designated entry.

```
$article = $articles->first();

echo $article->title; // ABBA piano seen raising money, money, money at auction

echo $article->whatever; // null
```

Or iterate through the articles

```
foreach ($feed->articles() as $article) {
  $title = $article->title;
}
```

You may also access the article's original XML format with

```
$article->xml();
```

### Got Questions?

[](#got-questions)

Reach out in the [issues](https://github.com/vinelab/rss/issues).

---

[MIT LICENSE](/LICENSE)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~375 days

Recently: every ~584 days

Total

9

Last Release

1533d ago

Major Versions

v1.0.4 → v2.0.02020-07-18

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

1.0.3PHP &gt;=5.4.0

v2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4564469?v=4)[Sociata](/maintainers/Vinelab)[@Vinelab](https://github.com/Vinelab)

---

Top Contributors

[![Mulkave](https://avatars.githubusercontent.com/u/2647333?v=4)](https://github.com/Mulkave "Mulkave (30 commits)")[![MatissJanis](https://avatars.githubusercontent.com/u/886567?v=4)](https://github.com/MatissJanis "MatissJanis (1 commits)")[![mattstauffer](https://avatars.githubusercontent.com/u/151829?v=4)](https://github.com/mattstauffer "mattstauffer (1 commits)")[![alnutile](https://avatars.githubusercontent.com/u/365385?v=4)](https://github.com/alnutile "alnutile (1 commits)")[![michaeldyrynda](https://avatars.githubusercontent.com/u/558441?v=4)](https://github.com/michaeldyrynda "michaeldyrynda (1 commits)")[![petecoop](https://avatars.githubusercontent.com/u/1655361?v=4)](https://github.com/petecoop "petecoop (1 commits)")[![memco](https://avatars.githubusercontent.com/u/1486098?v=4)](https://github.com/memco "memco (1 commits)")

---

Tags

laravelphprssrss-client

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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