PHPackages                             read2me-online/itunes-podcast-feed-php - 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. read2me-online/itunes-podcast-feed-php

ActiveLibrary[API Development](/categories/api)

read2me-online/itunes-podcast-feed-php
======================================

A tiny PHP library for generating iTunes-compatible podcast feeds.

1.0.6(7y ago)52235[1 issues](https://github.com/read2me-online/itunes-podcast-feed-php/issues)PHPPHP &gt;=7.1

Since May 1Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/read2me-online/itunes-podcast-feed-php)[ Packagist](https://packagist.org/packages/read2me-online/itunes-podcast-feed-php)[ RSS](/packages/read2me-online-itunes-podcast-feed-php/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/16c7fd018ac2b4b57e462e7d6b805e51835792ceddc3543f99962ce67bf16493/68747470733a2f2f7472617669732d63692e6f72672f72656164326d652d6f6e6c696e652f6974756e65732d706f64636173742d666565642d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/read2me-online/itunes-podcast-feed-php)[![Maintainability](https://camo.githubusercontent.com/418c5e02da51dbc49f12d9bdfd5e74e3a47408a2cb026d2d49c520ff32c51ed4/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62333632373838376637646664363364326663392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/read2me-online/itunes-podcast-feed-php/maintainability)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2c383912547ca9b942aacfa11a638ef12e73b2075680dcb7144e78e2de464097/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72656164326d652d6f6e6c696e652f6974756e65732d706f64636173742d666565642d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/read2me-online/itunes-podcast-feed-php/?branch=master)

Installation
============

[](#installation)

`composer require read2me-online/itunes-podcast-feed-php`

Usage
=====

[](#usage)

Put this in a file that you want to become your feed (e.g. `https://mysite.com/rss/feed.php`):

```
use iTunesPodcastFeed\Channel;
use iTunesPodcastFeed\FeedGenerator;
use iTunesPodcastFeed\Item;

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

// SETUP CHANNEL
$title = 'Read2Me Daily Curated Articles';
$link = 'https://read2me.online';
$author = 'NYTimes and Medium';
$email = 'hello@read2me.online';
$image = 'https://d22fip447qchhd.cloudfront.net/api/widget/static/images/android-chrome-1400x1400.png';
$explicit = false;
$categories = [
    'News',
    'Technology',
    'Culture',
    'Entrepreneurship',
    'Productivity'
];
$description = 'Daily curated articles from New York Times and Medium';
$lang = 'en';
$copyright = 'The New York Times Company and The Medium Company';
$ttl = 43200; // 12 hours in seconds

$channel = new Channel(
    $title, $link, $author, $email,
    $image, $explicit, $categories,
    $description, $lang, $copyright, $ttl
);

// SETUP EPISODE
$title = "Trump Says Disclosure of Mueller Questions in Russia Probe Is ‘Disgraceful’";
$fileUrl = 'https://s3.read2me.online/audio/www-nytimes-com-2018-05-01-us-politics-trump-mueller-russia-questions-html-7e9601.mp3';
$duration = '2:18';
$description = 'WASHINGTON — President Trump on Tuesday said it was “disgraceful” that questions the special counsel would like to ask him were publicly disclosed, and he incorrectly noted that there were no questions about collusion. The president also said collusion was a “phony” crime.';
$date = 1525177808;
$filesize = 828387;
$mime = 'audio/mpeg';

$item = new Item(
    $title, $fileUrl, $duration,
    $description, $date, $filesize, $mime
);
$item2 = clone $item; // just to give you an idea of how it works

// SETUP FEED
$feed = new FeedGenerator($channel, ...[$item, $item2]);

// OUTPUT XML
header('Content-Type: application/xml; charset=utf-8');

print $feed->getXml();
```

Then, go to  and submit your feed.

Addendum
========

[](#addendum)

- XML syntax based off [aaronsnoswell/itunes-podcast-feed ](https://github.com/aaronsnoswell/itunes-podcast-feed)
- This library is in production use at [Read2Me](https://read2me.online/)
- Demo:
- iTunes link for the aforementioned demo:
- Donate:

###  Health Score

38

—

LowBetter than 86% of packages

Maintenance46

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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

8

Last Release

2879d ago

Major Versions

0.1 → 1.02018-05-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/611de639568d4b4de299f5a46fb6a14a2adb78182c33a7609c2da285cae67b98?d=identicon)[NinoSkopac](/maintainers/NinoSkopac)

---

Top Contributors

[![NinoSkopac](https://avatars.githubusercontent.com/u/1783732?v=4)](https://github.com/NinoSkopac "NinoSkopac (49 commits)")[![photodude](https://avatars.githubusercontent.com/u/10253980?v=4)](https://github.com/photodude "photodude (1 commits)")

---

Tags

rssitunesPodcast-Feed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/read2me-online-itunes-podcast-feed-php/health.svg)

```
[![Health](https://phpackages.com/badges/read2me-online-itunes-podcast-feed-php/health.svg)](https://phpackages.com/packages/read2me-online-itunes-podcast-feed-php)
```

###  Alternatives

[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16648.4M36](/packages/laminas-laminas-feed)[mibe/feedwriter

Generate feeds in either RSS 1.0, RSS 2.0 or ATOM formats

1981.1M5](/packages/mibe-feedwriter)[dariusiii/php-itunes-api

Query iTunes API System

1116.9k](/packages/dariusiii-php-itunes-api)[nullform/app-store-server-api-client

PHP client for App Store Server API and App Store Server Notifications

121.1k](/packages/nullform-app-store-server-api-client)[dotzecker/larafeed

Feed (Atom and RSS) generator for any framework

111.1k1](/packages/dotzecker-larafeed)

PHPackages © 2026

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