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.

Advertisements

One thought on “rss-atom-bundle 1.6.0 is out

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s