Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/desarrolla2/rssclientbundle
- Owner: desarrolla2
- License: mit
- Created: 2012-06-20T21:17:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-25T08:37:30.000Z (about 11 years ago)
- Last Synced: 2024-10-30T01:04:16.633Z (2 months ago)
- Language: PHP
- Size: 233 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).