PHPackages                             gbuckingham89/youtube-rss-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. gbuckingham89/youtube-rss-parser

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

gbuckingham89/youtube-rss-parser
================================

A simple parser for reading a YouTube RSS feed.

0.4.0(5y ago)2017.2k7MITPHPPHP ^7.1.8|^8.0

Since Apr 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gbuckingham89/youtube-rss-parser)[ Packagist](https://packagist.org/packages/gbuckingham89/youtube-rss-parser)[ Docs](https://github.com/gbuckingham89/youtube-rss-parser)[ RSS](/packages/gbuckingham89-youtube-rss-parser/feed)WikiDiscussions master Synced today

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

gbuckingham89/youtube-rss-parser
================================

[](#gbuckingham89youtube-rss-parser)

A simple PHP parser for reading a YouTube RSS feed. It provides a object oriented interface for accessing the RSS feed data. Perfect for when you need to access recent videos, but don't want to use the full YouTube API.

Requirements
------------

[](#requirements)

Requires PHP 7.1.8 or greater. Uses *guzzlehttp/guzzle* as a HTTP client and *nesbot/carbon* for handling dates. See `composer.json` for more details.

If you require support for an older PHP version (&gt;=5.5), see [release v0.1.0](https://github.com/gbuckingham89/youtube-rss-parser/tree/v0.1.0).

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

[](#installation)

Use [Composer](http://getcomposer.org):

```
composer require gbuckingham89/youtube-rss-parser

```

Usage
-----

[](#usage)

To get started you'll need to create an instance of the parser;

```
$parser = new \Gbuckingham89\YouTubeRSSParser\Parser();

```

You can then load the RSS feed from a URL:

```
$rss_url = 'https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID_HERE';
$parser->loadUrl($rss_url);

```

Or, if you're in a hurry, you can also pass in the URL as the first argument when you instantiate the parser object.

Or if you've already got the XML of RSS feed content as a string, you can load it via that:

```
$rss_content = 'RSS FEED CONTENT';
$parser->loadString($rss_content);

```

Both of these methods then return an instance of `\Gbuckingham89\YouTubeRSSParser\Channel`. You can also access the `channel` property or call the `channel` method on the `Parser` instance to get the `Channel` object.

You can then access the properties of the channel (see the class file). The `videos` property is an array of `\Gbuckingham89\YouTubeRSSParser\Video` objects, on which you can access the properties of the video (see the class file).

Prefer working with arrays? Or JSON? You can simply call the `toArray` or `toJson` on both the `Channel` and `Videos` objects.

Contributing / bugs
-------------------

[](#contributing--bugs)

Just open an issue / pull request if you find a bug, or want to contribute!

Copyright and license
---------------------

[](#copyright-and-license)

Code and documentation copyright 2017 [George Buckingham](https://www.georgebuckingham.com). Code released under the [MIT License](https://github.com/gbuckingham89/eloquent-uuid/blob/master/LICENSE).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~354 days

Total

5

Last Release

1939d ago

PHP version history (3 changes)v0.1.0PHP &gt;=5.5.0

v0.2.0PHP ^7.1.8

0.3.0PHP ^7.1.8|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/22ec38c802df71e6286b262e605a1b445f2657b8f834db0098d10a06c9ec1137?d=identicon)[gbuckingham89](/maintainers/gbuckingham89)

---

Top Contributors

[![gbuckingham89](https://avatars.githubusercontent.com/u/1455253?v=4)](https://github.com/gbuckingham89 "gbuckingham89 (7 commits)")[![tm69](https://avatars.githubusercontent.com/u/28063419?v=4)](https://github.com/tm69 "tm69 (1 commits)")[![uziel-bueno](https://avatars.githubusercontent.com/u/77310379?v=4)](https://github.com/uziel-bueno "uziel-bueno (1 commits)")[![Yazan-Stash](https://avatars.githubusercontent.com/u/28860695?v=4)](https://github.com/Yazan-Stash "Yazan-Stash (1 commits)")

---

Tags

phpphp-libraryphp-youtube-apirssrss-feed-parserrss-feed-scraperrss-readeryoutubeyoutube-apiyoutube-channelparserrssyoutube

### Embed Badge

![Health badge](/badges/gbuckingham89-youtube-rss-parser/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)[phanan/poddle

Parse podcast feeds with PHP following PSP-1 Podcast RSS Standard

1732.7k8](/packages/phanan-poddle)

PHPackages © 2026

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