WOW RSS is a little PHP script that fetches either a single or multiple RSS Feeds and combines them to display on your website along with categories and dates. With added options, you can tailor the output to suit your needs.

Prerequisites

WOW RSS has been tested on PHP 7.03 and 7.1.12. Slight changes can be made to run on PHP 5.6. Please get in touch if you require help. The script also uses cURL

Download

Simply download, extract and place it in on your PHP enabled web server.
Version 1.1 Released- 3rd February 2018 Download WOW RSS

How to Use

Once installed on your server you need to include the script in your PHP page.

Now we need to create a new instance of the class.

If you are using a single class you can:

Both WowSingleRss and WowMultiRss take 4 arguments.

$url -WowSingleRss

(String) Required The URL for the single feed you want to fetch.

$urls – WowMultiRss

(Array) Required The URLs of the feeds you want to fetch.

$max_items

(String|Int) Required The number of feeds you want to display.

$date_format

(String) Required The date format you want to display. – See http://php.net/manual/en/function.date.php

$sort_feed

(Array|Bool) Required The order in which you want to sort your feeds. Defaults to newest first if true is set.

Examples -Single Feeds

To display a single feed with the latest 10 items sorted with newest at the top and the date format  Jan 18

The same can also be achieved by the following

Display’s a single feed with 20 items sorted with oldest at the top and the date format  1-18-18

To display 2 single feeds with different options

Examples – Multiple Feeds Combined

Displays latest 50 items from  3 Combined Feeds with the date format 18 January 2018, sorted by newest first

This final example displays the latest 10 items from  3 Combined Feeds with the no date format, sorted by newest first

Styling Your Feeds

You can optimise the style of your feeds easily using CSS.  I have therefore included a CSS file in the download for your reference. The classes to edit are:

Further Improvements

Furthermore, if you would like to suggest an improvement to the code or request a new feature then please do get in touch. Although the code has been tested quite thoroughly it shouldn’t contain any bugs. Please report them if you do come across any.  Please remember that RSS is quite limited and in order for the script to work you have to have a valid RSS feed(s).

Sources

Stack Overflow – Multiple Curl Requests

PHP Date Function