RSS is a fairly simple format - there is no need to use a separate library.
I would just use simplexml , because I don’t want to spend efforts on studying another library and watching its development.
Here is a simple PHP script to display the latest Stackoverflor posts using simplexml:
<?php
$rss = simplexml_load_file('http://stackoverflow.com/feeds');
?>
<h1><?php echo $rss->title; ?></h1>
<ul>
<?php
foreach($rss->entry as $e) {
echo "<li><a href=\"".$e->link['href']."\">";
echo $e->title;
echo "</a></li>\n";
}
?>
</ul>
source
share