PHPackages                             tomgould/rsstojson - 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. tomgould/rsstojson

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

tomgould/rsstojson
==================

Universal RSS/Atom/XML parser that outputs clean JSON-compatible arrays.

v2.0.1(6mo ago)2863—3.8%MITPHPPHP &gt;=7.4

Since May 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/tomgould/rss-to-json)[ Packagist](https://packagist.org/packages/tomgould/rsstojson)[ RSS](/packages/tomgould-rsstojson/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

RSStoJSON
=========

[](#rsstojson)

RSStoJSON is a PHP library that parses RSS, Atom, or generic XML feeds (including MRSS video feeds) into structured, JSON-compatible arrays. It works with remote URLs or local files and is designed to be framework-agnostic.

🚀 Features
----------

[](#-features)

- Supports RSS, Atom, MRSS (Media RSS), and XML feeds
- Works with local file paths or remote URLs
- Handles namespaced elements and attributes (e.g., `media:content`, `media:thumbnail`)
- JSON-encoding ready output
- Includes CLI tool for terminal use
- PHP 7.4+ compatible (works with Drupal 8, 9, 10, 11, and other modern PHP frameworks)
- Composer-ready for easy installation

📦 Installation
--------------

[](#-installation)

Via Composer:

```
composer require tomgould/rsstojson
```

🛠 Usage
-------

[](#-usage)

### Programmatic

[](#programmatic)

```
