Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desarrolla2/rssclientbundle

Service for provide RSS client in your website.
https://github.com/desarrolla2/rssclientbundle

Last synced: about 1 month ago
JSON representation

Service for provide RSS client in your website.

Awesome Lists containing this project

README

        

# RSSClientBundle

[![knpbundles.com](http://knpbundles.com/desarrolla2/RSSClientBundle/badge)](http://knpbundles.com/desarrolla2/RSSClientBundle)

[![Latest Stable Version](https://poser.pugx.org/desarrolla2/rss-client-bundle/v/stable.png)](https://packagist.org/packages/desarrolla2/rss-client-bundle) [![Total Downloads](https://poser.pugx.org/desarrolla2/rss-client-bundle/downloads.png)](https://packagist.org/packages/desarrolla2/rss-client-bundle) [![Build Status](https://secure.travis-ci.org/desarrolla2/RSSClientBundle.png)](http://travis-ci.org/desarrolla2/RSSClientBundle)

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 :

``` json
"require": {
...
"desarrolla2/rss-client-bundle": "2.*"
},
````

And make

``` bash
composer update
```

### Register the bundle

``` php
// app/AppKernel.php
client = $this->get('rss_client');

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

}
```

### In your view

Render the content for your users

``` html
{% block content %}

{% for feed in feeds %}


{{ feed.title }}


{{ feed | raw }}



{% else %}

Not news :(


{% endfor %}

{% endblock %}
```

## Contact

You can contact with me on [twitter](https://twitter.com/desarrolla2).

## More Info

See [RSSClient](https://github.com/desarrolla2/RSSClient).