Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
/ rss-atom-parser Public archive

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

License

Notifications You must be signed in to change notification settings

AnzenKodo/rss-atom-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rss-atom-parser

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