anzenkodo / rss-atom-parser
RSS & Atom feed parser for PHP. Very small and easy-to-use library for parsing your feeds.
Fund package maintenance!
Website
Installs: 11 964
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-04-03 12:26:47 UTC
README
RSS & Atom feed parser for PHP. Very small and easy-to-use library for parsing your feeds.
Getting Started
It requires PHP 5.3 or newer with CURL extension or enabled allow_url_fopen.
Install via Composer:
composer require AnzenKodo/rss-atom-parser
Usage
<?php // Load plugins require_once __DIR__.'/vendor/autoload.php'; // Array and String are supported. $values = ["https://anzenkodo.github.io/blog/feed.xml", "https://anzenkodo.github.io/dblog/feed.xml"]; $values = "https://anzenkodo.github.io/blog/feed.xml"; $feed = RSS::feed($values); print_r($feed); ?>