This package is abandoned and no longer maintained. No replacement package was suggested.

This Bundle provides a way to get rss feeds friendly.

v2.0.4 2013-08-05 07:12 UTC


Latest Stable Version Total Downloads Build Status

Service for provide RSS client in your website, you can automatically add content to your site from your favorite information providers.

Bundle Installation

Get the bundle

Add to your /composer.json file :

    "require": {
        "desarrolla2/rss-client-bundle": "2.*" 

And make

composer update

Register the bundle

// app/AppKernel.php

  public function registerBundles()
    return array(
      // ...
      new Desarrolla2\Bundle\RSSClientBundle\RSSClientBundle(),

Using RSS Bundle

Configure providers

You need edit your config.yml and add the rss routes you want to get.

# app/config/config.yml
      ttl:     3600 # This is the default
         - ''
         - ''
         - ''
         - ''

The cache option is completely optional. If not specified the shown default take effect.

Optionally: configure custom processors

If you want to use custom processors to extract additional information from a feed, also add the "processors" key pointing to services that implement the ProcessorInterface.

   processors: ["my_service_id", "my_other_service_id"]

In your controller

Retrieve the service and fetch the content.


class NewsController extends Controller

     * Renders latest news
     * @return array
     * @Route("/noticias", name="news_index")
     * @Template()
    public function indexAction()
        $this->client = $this->get('rss_client');

        return array(
            'feeds'   => $this->client->fetch('channel_name1'),


In your view

Render the content for your users

{% block content %}
        {% for feed in feeds %}            
                    <a href="{{ }}" target="_blank">{{ feed.title }}</a>
                    <time>{{ feed.pubDate | date('d/m/Y H:i') }}</time>
                <p>{{ feed | raw }}</p>
        {% else %}
            <p>Not news :(</p>
        {% endfor %}    
{% endblock %}


You can contact with me on twitter.

More Info

See RSSClient.