PHPackages                             mhrlab/youtube-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mhrlab/youtube-rss

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mhrlab/youtube-rss
==================

Small and easy-to-use library for consuming YouTube feeds

v1.0.0(4y ago)025MITPHPPHP &gt;=7.0

Since Oct 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mhrlab/youtube-rss)[ Packagist](https://packagist.org/packages/mhrlab/youtube-rss)[ Docs](https://github.com/mhrlab/youtube-rss)[ RSS](/packages/mhrlab-youtube-rss/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

YouTube-Rss Feed
================

[](#youtube-rss-feed)

[![mhrlab - youtube-rss](https://camo.githubusercontent.com/b27e97f4fffa0773415322b61b8c7130638e2df760ca970c801e365039e26280/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d6d68726c6162266d6573736167653d796f75747562652d72737326636f6c6f723d626c7565266c6f676f3d676974687562)](https://github.com/mhrlab/youtube-rss)[![stars - youtube-rss](https://camo.githubusercontent.com/b9299aba5a8d16b2aa5638b6082c975af506a7eafb5e3012adffa546eb8ccc34/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d68726c61622f796f75747562652d7273733f7374796c653d736f6369616c)](https://github.com/mhrlab/youtube-rss)[![forks - youtube-rss](https://camo.githubusercontent.com/3c55215f6b17d82f4602b613f799a3d98050c6aa3dffb2f4d0c699aee84bd7de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d68726c61622f796f75747562652d7273733f7374796c653d736f6369616c)](https://github.com/mhrlab/youtube-rss)

[![GitHub release](https://camo.githubusercontent.com/e729233bccc252a03a7bb5356771176a57c6ba0b2806d23e76211e8a54c35084/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d68726c61622f796f75747562652d7273733f696e636c7564655f70726572656c65617365733d26736f72743d73656d76657226636f6c6f723d626c7565)](https://github.com/mhrlab/youtube-rss/releases/)[![License](https://camo.githubusercontent.com/a53decc1557edd077043b4988d1cb10e1d4e9e8680aa87e015d77641b8d1c099/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c5f76322d626c7565)](https://github.com/mhrlab/youtube-rss/blob/master/LICENSE)[![issues - youtube-rss](https://camo.githubusercontent.com/2387b455f4aa1e2f824d4b4e1db7b45d45b29a6a4cb8f8925167ecef4ca767b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d68726c61622f796f75747562652d727373)](https://github.com/mhrlab/youtube-rss/issues)[![](https://camo.githubusercontent.com/1b3c15858d38192b3892bb8bd5b17d981f34443607c8d8bc2ee2e7e473241fb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d68726c61622f796f75747562652d7273732e737667)](https://github.com/mhrlab/youtube-rss/releases/)

Small and easy-to-use library for consuming YouTube feeds

---

- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start and Examples](#quick-start-and-examples)
- [Contribute](#contribute)

---

### Installation

[](#installation)

To install **YouTube-Rss**, simply:

```
composer require mhrlab/youtube-rss

```

For latest commit version:

```
composer require mhrlab/youtube-rss:dev-master

```

### Requirements

[](#requirements)

**YouTube-Rss** works with PHP 7.0, 7.1, 7.2, 7.3, 7.4, and 8.0.

### Quick Start and Examples

[](#quick-start-and-examples)

More examples are available under [/examples](https://github.com/mhrlab/youtube-rss/tree/master/examples).

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

$rss = new Feed('https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID');

if ($rss->error){
  /* print error message  */
  echo $rss->errorMessage;
}else{
  $array = $rss->toArray();

  /*pass true to print json with header('content-type:application/json')*/
  $rss->toJSON(true);
}
```

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

$rss = new Feed();

/*set time_zone to receive all time&date in own timezone. */
$rss->time_zone = 'asia/kolkata';

$rss->loadRss('https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID');

if ($rss->error){
  /* print error message  */
  echo $rss->errorMessage;

}else{
  $array = $rss->toArray();
  /*pass true to print json with header('content-type:application/json')*/
  $rss->toJSON(true);
}
```

### Contribute

[](#contribute)

1. Check for open issues or open a new issue to start a discussion around a bug or feature.
2. Fork the repository on GitHub to start making your changes.
3. Write one or more tests for the new feature or that expose the bug.
4. Make code changes to implement the feature or fix the bug.
5. Send a pull request to get your changes merged and published.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6dcd2f6818ef13f79f492a35cddb81b57ef46d8fc61a7cd641d27d62218188f?d=identicon)[hemant-kr-meena](/maintainers/hemant-kr-meena)

---

Top Contributors

[![hemant-kr-meena](https://avatars.githubusercontent.com/u/38046347?v=4)](https://github.com/hemant-kr-meena "hemant-kr-meena (7 commits)")

---

Tags

phprssyoutube-rssyoutube-feed

### Embed Badge

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

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

###  Alternatives

[suin/php-rss-writer

Yet another simple RSS writer library for PHP 5.4 or later.

2651.4M20](/packages/suin-php-rss-writer)[rumenx/php-feed

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

3652.3k](/packages/rumenx-php-feed)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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