Php – RSS Feed consumption by PHP

PHPrss

I'm wishing to aggregate some Blog feeds into an existing PHP-based website. There's tons of free libraries for PHP that consume RSS feeds. But I thought I'd throw out my needs to see if I can get the number to try minimized to one that's popular.

1) I'm wishing to aggregate some top items from up to 3 different RSS feeds into one stream for consumption.

2) In addition, I may want to aggregate stories from the different websites that match a certain "tag".

3) I'd prefer if this ran daily as a chron job and updated some static html include files, as the feed doesn't need to be updated constantly.

4) I'd also like the possibility of the feed writing to a couple different static html includes. So that I can have one Main news section, and then maybe a call-out section on the right that matches a specific tag for the article or something.

So, what's your favorite libraries/code snippets to accomplish some of this.

Thanks,
Todd

Best Answer

Yahoo pipes is an excellent way of aggregating feeds.

There is also functionality to add rules to do operations such as get rid of duplicate entries or filter items matching specific criteria.

For actually parsing the feed, the class library Simple Pie is great.