{"id":21421528,"url":"https://github.com/desarrolla2/rssclientbundle","last_synced_at":"2025-06-12T16:10:25.346Z","repository":{"id":3662925,"uuid":"4731575","full_name":"desarrolla2/RSSClientBundle","owner":"desarrolla2","description":"Service for provide RSS client in your website.","archived":false,"fork":false,"pushed_at":"2013-11-25T08:37:30.000Z","size":239,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T16:46:05.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/desarrolla2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-20T21:17:35.000Z","updated_at":"2018-02-13T00:38:48.000Z","dependencies_parsed_at":"2022-08-25T14:11:09.450Z","dependency_job_id":null,"html_url":"https://github.com/desarrolla2/RSSClientBundle","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/desarrolla2/RSSClientBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desarrolla2%2FRSSClientBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desarrolla2%2FRSSClientBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desarrolla2%2FRSSClientBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desarrolla2%2FRSSClientBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/desarrolla2","download_url":"https://codeload.github.com/desarrolla2/RSSClientBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desarrolla2%2FRSSClientBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259500232,"owners_count":22867338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T20:35:47.066Z","updated_at":"2025-06-12T16:10:25.318Z","avatar_url":"https://github.com/desarrolla2.png","language":"PHP","readme":"# RSSClientBundle\n\n[![knpbundles.com](http://knpbundles.com/desarrolla2/RSSClientBundle/badge)](http://knpbundles.com/desarrolla2/RSSClientBundle)\n\n[![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)\n\nService for provide RSS client in your website, you can automatically add content to your site from your favorite information providers.\n\n\n## Bundle Installation\n\n### Get the bundle\n\nAdd to your `/composer.json` file :\n\n``` json\n    \"require\": {\n        ...       \n        \"desarrolla2/rss-client-bundle\": \"2.*\" \n    },\n````\n        \nAnd make\n\n``` bash\ncomposer update\n```\n\n### Register the bundle\n\n``` php\n// app/AppKernel.php\n\u003c?php\n\n  public function registerBundles()\n  {\n    return array(\n      // ...\n      new Desarrolla2\\Bundle\\RSSClientBundle\\RSSClientBundle(),\n      );\n  }\n```\n\n## Using RSS Bundle\n\n### Configure providers\n\nYou need edit your config.yml and add the rss routes you want to get.\n\n``` yml\n# app/config/config.yml\nrss_client:\n   cache:\n      ttl:     3600 # This is the default\n   channels:     \n      channel_name1:\n         - 'http://www.osukaru.es/feed/'\n         - 'http://desarrolla2.com/feed/'\n         \n      channel_name2:\n         - 'http://feeds.feedburner.com/symfony/blog'\n         - 'http://www.symfony.es/feed/'\n```\n\nThe cache option is completely optional. If not specified the shown default take effect.\n\n#### Optionally: configure custom processors\n\nIf you want to use [custom processors](https://github.com/desarrolla2/RSSClient/blob/master/doc/custom-process.md) to extract additional information from a feed, also add the \"processors\" key pointing to services that implement the ```ProcessorInterface```.\n\n```yml\nrss_client:\n   processors: [\"my_service_id\", \"my_other_service_id\"]\n```\n\n### In your controller\n\nRetrieve the service and fetch the content.\n\n``` php\n\u003c?php\n\nclass NewsController extends Controller\n{\n\n    /**\n     * Renders latest news\n     *\n     * @return array\n     * @Route(\"/noticias\", name=\"news_index\")\n     * @Template()\n     */\n    public function indexAction()\n    {\n        $this-\u003eclient = $this-\u003eget('rss_client');\n\n        return array(\n            'feeds'   =\u003e $this-\u003eclient-\u003efetch('channel_name1'),\n        );\n    }\n\n}\n```\n\n### In your view\n\n\nRender the content for your users\n\n``` html\n{% block content %}\n    \u003csection\u003e\n        {% for feed in feeds %}            \n            \u003carticle\u003e\n                \u003cheader\u003e\n                    \u003ca href=\"{{ feed.link }}\" target=\"_blank\"\u003e{{ feed.title }}\u003c/a\u003e\n                    \u003ctime\u003e{{ feed.pubDate | date('d/m/Y H:i') }}\u003c/time\u003e\n                \u003c/header\u003e\n                \u003cp\u003e{{ feed | raw }}\u003c/p\u003e\n            \u003c/article\u003e      \n        {% else %}\n            \u003cp\u003eNot news :(\u003c/p\u003e\n        {% endfor %}    \n    \u003c/section\u003e\n{% endblock %}\n```\n\n## Contact\n\nYou can contact with me on [twitter](https://twitter.com/desarrolla2).\n\n## More Info\n\nSee [RSSClient](https://github.com/desarrolla2/RSSClient).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesarrolla2%2Frssclientbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesarrolla2%2Frssclientbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesarrolla2%2Frssclientbundle/lists"}