{"id":34744090,"url":"https://github.com/lukaswhite/php-feed-writer","last_synced_at":"2025-12-25T04:29:11.327Z","repository":{"id":45310147,"uuid":"148011376","full_name":"lukaswhite/php-feed-writer","owner":"lukaswhite","description":"A PHP 7.1 + library for creating feeds (RSS, Atom, iTunes, Spotify etc)","archived":false,"fork":false,"pushed_at":"2022-07-26T13:43:27.000Z","size":162,"stargazers_count":9,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T15:25:35.078Z","etag":null,"topics":["atom","feeds","georss","itunes","mediarss","php","rss","spotify","syndication"],"latest_commit_sha":null,"homepage":"https://lukaswhite.github.io/php-feed-writer","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/lukaswhite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-09T09:32:30.000Z","updated_at":"2024-12-10T21:43:38.000Z","dependencies_parsed_at":"2022-07-17T02:16:29.856Z","dependency_job_id":null,"html_url":"https://github.com/lukaswhite/php-feed-writer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/lukaswhite/php-feed-writer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaswhite%2Fphp-feed-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaswhite%2Fphp-feed-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaswhite%2Fphp-feed-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaswhite%2Fphp-feed-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukaswhite","download_url":"https://codeload.github.com/lukaswhite/php-feed-writer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaswhite%2Fphp-feed-writer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28019517,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["atom","feeds","georss","itunes","mediarss","php","rss","spotify","syndication"],"created_at":"2025-12-25T04:29:09.011Z","updated_at":"2025-12-25T04:29:11.322Z","avatar_url":"https://github.com/lukaswhite.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feed Writer\n\n\u003cimg src=\"https://lukaswhite.github.io/php-feed-writer/assets/php-feed-writer.svg\" width=\"120px\" alt=\"PHP Feed Writer\"\u003e\n\nA PHP library for writing feeds. Currently supports RSS 2.0, Atom and iTunes, along with support for MediaRSS, Dublin Core, GeoRSS and WordPress eXtended RSS (WXR).\n\n[![Build Status](https://travis-ci.org/lukaswhite/php-feed-writer.svg?branch=master)](https://travis-ci.org/lukaswhite/php-feed-writer)\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3a85bb8ef0af464382fb8acae9a6bd55)](https://www.codacy.com/app/lukaswhite/php-feed-writer?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=lukaswhite/php-feed-writer\u0026amp;utm_campaign=Badge_Grade)\n\n## Features\n\n* Modern (PHP7.1+)\n* Flexible; use it for syndication, media, podcasts...\n* Fast\n* Easy to extend\n* Supports custom namespaces\n* Full MediaRSS support\n* Dublin Core Support\n* GeoRSS support\n* Supports XSL stylesheets\n* No third-party dependencies\n* Fully tested\n\n## Simple Examples\n\n### RSS\n\n\n```php\n$feed = new RSS2( );\n\n$channel = $feed-\u003eaddChannel( );\n\n$channel\n\t-\u003etitle( 'My Blog' )\n\t-\u003edescription( 'My personal blog' )\n\t-\u003elink( 'https://example.com' )\n\t-\u003elastBuildDate( new \\DateTime( ) )\n\t-\u003epubDate( new \\DateTime( ) )\n\t-\u003elanguage( 'en-US' );\n\nforeach( $posts as $post ) {\n\t$channel-\u003eaddItem( )\n\t\t-\u003etitle( $post-\u003etitle )\n\t\t-\u003edescription( $post-\u003edescription )\n\t\t-\u003elink( $post-\u003eurl )\n\t\t-\u003epubDate( $post-\u003epublishedAt )\n\t\t-\u003eguid( $post-\u003eurl, true );\n}\n```\n\n### RSS in Laravel\n\n```php\n$feed = new RSS2( );\n\n// ...\n\nreturn response( )-\u003emake(\n\t$feed-\u003etoString( ),\n\t200,\n\t[\n\t\t'Content-Type' =\u003e $feed-\u003egetMimeType( ),\n\t]\n);\n\n```\n\n### Atom\n\n```php\n$feed = new \\Lukaswhite\\FeedWriter\\Atom( );\n\n$feed-\u003etitle( 'Example Feed' )\n\t-\u003elink( 'http://example.org/' )\n\t-\u003eupdated( new \\DateTime( '2003-12-13T18:30:02Z' ) )\n\t-\u003eid( 'urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6' );\n\t\nforeach( $posts as $post ) {\n\t$feed-\u003eaddEntry( )\n\t\t-\u003etitle( $post-\u003etitle )\n\t\t-\u003eid( $post-\u003eid )\n\t\t-\u003eupdated( $post-\u003eupdatedAt );\n}\n```\n\n### iTunes\n\n```php\n$feed = new Itunes( );\n\n$channel = $feed-\u003eaddChannel( );\n\n$channel-\u003etitle( 'All About Everything' )\n    -\u003esubtitle( 'A show about everything' )\n    -\u003edescription( 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store' )\n    -\u003esummary( 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store' )\n    -\u003elink( 'http://www.example.com/podcasts/everything/index.html' )\n    -\u003eimage( 'http://example.com/podcasts/everything/AllAboutEverything.jpg' )\n    -\u003eauthor( 'John Doe' )\n    -\u003eowner( 'John Doe', 'john.doe@example.com' )\n    -\u003eexplicit( 'no' )\n    -\u003ecopyright( '\u0026#x2117; \u0026amp; \u0026#xA9; 2014 John Doe \u0026amp; Family' )\n    -\u003egenerator( 'Feed Writer' )\n    -\u003ettl( 60 )\n    -\u003elastBuildDate( new \\DateTime( '2016-03-10 02:00' ) );\n\n$channel-\u003eaddCategory()\n    -\u003eterm('Technology');\n\n$channel-\u003eaddCategory()\n    -\u003eterm('Sports')\n    -\u003echildren('Football', 'Soccer');\n\n$channel-\u003eaddItem( )\n    -\u003etitle( 'Shake Shake Shake Your Spices' )\n    -\u003eauthor( 'John Doe' )\n    -\u003esubtitle( 'A short primer on table spices' )\n    -\u003eduration( '07:04' )\n    -\u003esummary( 'This week we talk about \u003ca href=\"https://itunes/apple.com/us/book/antique-trader-salt-pepper/id429691295?mt=11\"\u003esalt and pepper shakers\u003c/a\u003e, comparing and contrasting pour rates, construction materials, and overall aesthetics. Come and join the party!' )\n    -\u003epubDate( new \\DateTime( '2016-03-08 12:00' ) )\n    -\u003eguid( 'http://example.com/podcasts/archive/aae20140615.m4a' )\n    -\u003eexplicit( 'no' )\n    -\u003eaddEnclosure( )\n        -\u003eurl( 'http://example.com/podcasts/everything/AllAboutEverythingEpisode3.m4a' )\n        -\u003elength( 8727310 )\n        -\u003etype( 'audio/x-m4a' );\n```\n\n## Installation\n\nThis package requires PHP 7.1+.\n\nInstall the package using [Composer](https://getcomposer.org/):\n\n```\ncomposer require lukaswhite\\php-feed-writer\n```\n\n## Documentation\n\nFull documentation [can be found here](https://lukaswhite.github.io/php-feed-writer).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaswhite%2Fphp-feed-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukaswhite%2Fphp-feed-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaswhite%2Fphp-feed-writer/lists"}