{"id":14985425,"url":"https://github.com/lib16/rss-builder-php","last_synced_at":"2025-04-11T15:32:30.751Z","repository":{"id":57014569,"uuid":"94023253","full_name":"lib16/rss-builder-php","owner":"lib16","description":"lib16 RSS Builder is a PHP 7 library for creating RSS feeds.","archived":false,"fork":false,"pushed_at":"2020-12-27T07:11:40.000Z","size":42,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T15:49:46.092Z","etag":null,"topics":["composer","feeds","php","php-library","php7","rss","rss-builder","rss-writer"],"latest_commit_sha":null,"homepage":"","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/lib16.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":"2017-06-11T18:18:52.000Z","updated_at":"2021-11-29T02:19:52.000Z","dependencies_parsed_at":"2022-08-21T14:50:30.943Z","dependency_job_id":null,"html_url":"https://github.com/lib16/rss-builder-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lib16%2Frss-builder-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lib16%2Frss-builder-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lib16%2Frss-builder-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lib16%2Frss-builder-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lib16","download_url":"https://codeload.github.com/lib16/rss-builder-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431739,"owners_count":21102258,"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":["composer","feeds","php","php-library","php7","rss","rss-builder","rss-writer"],"created_at":"2024-09-24T14:10:57.118Z","updated_at":"2025-04-11T15:32:30.486Z","avatar_url":"https://github.com/lib16.png","language":"PHP","readme":"# Lib16 RSS Builder for PHP 7\nA library for creating RSS feeds written in PHP 7.\n\n[![Build Status](https://travis-ci.com/lib16/rss-builder-php.svg?branch=master)](https://travis-ci.com/lib16/rss-builder-php)\n[![Coverage](https://codecov.io/gh/lib16/rss-builder-php/branch/master/graph/badge.svg)](https://codecov.io/gh/lib16/rss-builder-php)\n\n## Installation with Composer\nThis package is available on [packagist](https://packagist.org/packages/lib16/rss), so you can use [Composer](https://getcomposer.org) to install it.\nRun the following command in your shell:\n\n```\ncomposer require lib16/rss\n```\n\n## Basic Usage\nExample markup is taken from [en.wikipedia.org/wiki/Rss](https://en.wikipedia.org/wiki/Rss)\n\n```php\n\u003c?php\nrequire_once 'vendor/autoload.php';\n\nuse Lib16\\RSS\\Channel;\nuse Lib16\\RSS\\RssMarkup;\n\n$channel = Channel::create(\n    'RSS Title',\n    'This is an example of an RSS feed',\n    'http://www.example.com/main.html'\n);\n$channel\n    -\u003epubDate(new DateTime('2010-09-06 00:01 +0'))\n    -\u003elastBuildDate(new DateTime('2009-09-06 16:20 +0'))\n    -\u003ettl(1800);\n\n$channel\n    -\u003eitem(\n        'Example entry',\n        'Here is some text containing an interesting description.',\n        'http://www.example.com/blog/post/1'\n    )\n    -\u003eguid('7bd204c6-1655-4c27-aeee-53f933c5395f', false)\n    -\u003epubDate(new DateTime('2009-09-06 16:20 +0'));\n\nRssMarkup::headerfields('example');\nprint $channel;\n```\n… generates the following output:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" ?\u003e\n\u003crss version=\"2.0\"\u003e\n    \u003cchannel\u003e\n        \u003ctitle\u003eRSS Title\u003c/title\u003e\n        \u003cdescription\u003eThis is an example of an RSS feed\u003c/description\u003e\n        \u003clink\u003ehttp://www.example.com/main.html\u003c/link\u003e\n        \u003cpubDate\u003eMon, 06 Sep 2010 00:01:00 +0000\u003c/pubDate\u003e\n        \u003clastBuildDate\u003eSun, 06 Sep 2009 16:20:00 +0000\u003c/lastBuildDate\u003e\n        \u003cttl\u003e1800\u003c/ttl\u003e\n        \u003citem\u003e\n            \u003ctitle\u003eExample entry\u003c/title\u003e\n            \u003cdescription\u003eHere is some text containing an interesting description.\u003c/description\u003e\n            \u003clink\u003ehttp://www.example.com/blog/post/1\u003c/link\u003e\n            \u003cguid isPermaLink=\"false\"\u003e7bd204c6-1655-4c27-aeee-53f933c5395f\u003c/guid\u003e\n            \u003cpubDate\u003eSun, 06 Sep 2009 16:20:00 +0000\u003c/pubDate\u003e\n        \u003c/item\u003e\n    \u003c/channel\u003e\n\u003c/rss\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flib16%2Frss-builder-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flib16%2Frss-builder-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flib16%2Frss-builder-php/lists"}