anzenkodo/rss-atom-parser

This package is abandoned and no longer maintained. No replacement package was suggested.

RSS & Atom feed parser for PHP. Very small and easy-to-use library for parsing your feeds.

v0.4 2022-11-26 06:12 UTC

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);
?>