suin/php-rss-writer
A lightweight PHP library for generating RSS 2.0 feeds. Build channels and items with a clean, fluent API and output valid XML. Handles enclosures, categories, pubDates, and GUIDs, installs via Composer, and fits into any PHP project.
Adopt when:
itunes:author, itunes:category, itunes:explicit, itunes:image, itunes:owner, and enclosure with length and type). Treat this as an acceptance checklist, not a claim.Look elsewhere when:
To executives: This is a small, cheap unlock, not a platform bet. Syndication and podcast distribution are commodity capabilities — we should not build them and should not pay much for them. This library gets us a standards-compliant RSS 2.0 feed, including podcast enclosures, in days of engineering instead of weeks, under a permissive license, with no new infrastructure or vendor contract. The honest caveat: the project hasn't been updated since 2017, so we treat it as source we adopt rather than a vendor we depend on — we fork it, pin it, and own the roughly 500 lines that matter. That keeps the operational risk close to zero while preserving the option to swap in a maintained library or a hosted podcast platform later if the channel proves out.
To engineering: Single-purpose writer, no runtime services, no config sprawl. Plan for one spike to confirm PHP 8.x compatibility and test coverage for the iTunes namespace tags, then fork-and-pin. Accept the maintenance burden explicitly — it's a known, bounded cost, and it's cheaper than the alternative of hand-rolling XML escaping and enclosure MIME/length handling. Do not extend it into Atom or JSON Feed; if that requirement lands, that's a new build-vs-buy decision, not a patch to this dependency.
How can I help you explore Laravel packages today?