Alexandre Debril

web programmer & open source contributor

rss-atom-bundle 1.6.0 is out

rss-atom-bundle 1.6.0 has just been released. This version brings enclosures support, that means you can now access embedded medias like images and podcasts.

Here's a code sample :

// let's say $feed is a FeedContent instance
$items = $feed->getItems();

foreach ( $items as $item ) {
    // getMedias() returns enclosures if any
    $medias = $item->getMedias();
    foreach ( $medias as $media ) {
        echo $media->getUrl();
    }
}

The next release of rss-atom-bundle is scheduled for the next couple of weeks. It will include this pull request, which goal is to improve rss-atom-bundle's comprehension. But be careful, it breaks backward compatibility because all interfaces are renamed to follow Sensio Labs Insight's recommendations.