{"id":15045083,"url":"https://github.com/marcw/rss-writer","last_synced_at":"2025-10-25T00:31:38.493Z","repository":{"id":62523932,"uuid":"62079976","full_name":"marcw/rss-writer","owner":"marcw","description":"A simple, yet powerful and fully customizable RSS2 feed writer that supports extensions (like iTunes podcasting) ","archived":false,"fork":false,"pushed_at":"2017-04-01T12:19:49.000Z","size":48,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T04:32:05.510Z","etag":null,"topics":["feed","feed-creation","itunes-podcasting","rss","rss-generator","streaming-rss-responses","symfony-bundle"],"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/marcw.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":"2016-06-27T18:50:08.000Z","updated_at":"2024-03-22T06:06:37.000Z","dependencies_parsed_at":"2022-11-02T10:31:28.906Z","dependency_job_id":null,"html_url":"https://github.com/marcw/rss-writer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Frss-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Frss-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Frss-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Frss-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcw","download_url":"https://codeload.github.com/marcw/rss-writer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053514,"owners_count":19408699,"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":["feed","feed-creation","itunes-podcasting","rss","rss-generator","streaming-rss-responses","symfony-bundle"],"created_at":"2024-09-24T20:51:26.102Z","updated_at":"2025-10-25T00:31:38.096Z","avatar_url":"https://github.com/marcw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RssWriter\n\n[![Build Status](https://travis-ci.org/marcw/rss-writer.svg?branch=master)](https://travis-ci.org/marcw/rss-writer)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/515dfe1b-e319-46a2-9b12-b1fc9508b5a8/mini.png)](https://insight.sensiolabs.com/projects/515dfe1b-e319-46a2-9b12-b1fc9508b5a8)\n[![Coverage Status](https://coveralls.io/repos/github/marcw/rss-writer/badge.svg?branch=master)](https://coveralls.io/github/marcw/rss-writer?branch=master)\n\nA simple, yet powerful and fully customizable RSS 2.0 writing library, with a\nnative support of iTunes podcasting tags and other RSS extensions.\n\n## Why a new Rss writing library?\n\nAt the time of writing this library, the current state of feed writing\nlibraries was not satisfying. What I found was either difficult to extend, too\ngeneric, or wasn't taking advantage of best practices in order to reduce the\n[Time To First Byte](https://en.wikipedia.org/wiki/Time_To_First_Byte).\n\n## Why should I use this over other libraries?\n\nUse this library if you want:\n\n- RSS2 feeds (because there's no support for other types of feed).\n- Extensions for iTunes podcasting, Slash, Sy, DublinCreator, Atom, or just your own.\n- Best performance (memory and TTFB) thanks to XML Streaming.\n- Object oriented feed creation with POPO\n\n## How can I install it?\n\nRun `composer require marcw/rss-writer`.\n\n## How does it work?\n\n### Feed creation\n\nSee [this file](tests/RssWriterTest.php).\n\n### Rss Streamed Response\n\nSee [this file](tests/Bridge/Symfony/HttpFoundation/RssStreamedResponseTest.php).\n\n### Symfony Bridge\n\n#### HttpFoundation\n\nThe library provides an extension to the `Symfony\\Component\\HttpFoundation\\Response` class for streaming rss responses to the client. See [`RssStreamedResponse.php`](src/Bridge/Symfony/HttpFoundation/RssStreamedResponse.php).\nUse it from your controllers like this:\n\n```php\nuse MarcW\\RssWriter\\Bridge\\Symfony\\HttpFoundation\\RssStreamedResponse;\n\npublic function myAction()\n{\n    // $channel = ... (whatever you use to create your Channel object)\n\n    return new RssStreamedResponse($channel, $this-\u003eget('marcw_rss_writer.rss_writer'));\n}\n```\n\n#### Form\n\nAn iTunes category choice list is available to use in your forms. Follow this example:\n\n```php\n\u003c?php\n\nnamespace AppBundle\\Form;\n\nuse MarcW\\RssWriter\\Bridge\\Symfony\\Form\\ChoiceList\\Loader\\ItunesCategoryChoiceLoader;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\nclass MyFormType extends AbstractType\n{\n    public function buildForm(FormBuilderInterface $builder, array $options)\n    {\n        // ...\n        $builder-\u003eadd('category', ChoiceType::class, ['choice_loader' =\u003e new ItunesCategoryChoiceLoader()])\n        // ...\n    }\n}\n```\n\n### Symfony Bundle\n\nThis library also provides a Symfony bundle.\n\nAdd this to your `AppKernel.php` file.\n\n```php\nnew MarcW\\RssWriter\\Bundle\\MarcWRssWriterBundle()\n```\n\nYou can now use the `marcw_rss_writer.rss_writer` service.\n\n## Can I contribute?\n\nSure! Feel free to report issues, send pull-requests, or ask for help.\n\n## Projects using this lib\n\n - [Banditore](https://bandito.re) retrieves new releases from your Github starred repositories and put them in a RSS feed.\n\n## LICENSE\n\nSee the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcw%2Frss-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcw%2Frss-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcw%2Frss-writer/lists"}