{"id":20570620,"url":"https://github.com/chouchen/shikiryurss","last_synced_at":"2025-07-05T04:05:41.204Z","repository":{"id":149301824,"uuid":"1825326","full_name":"Chouchen/ShikiryuRSS","owner":"Chouchen","description":"Create and read RSS file in PHP","archived":false,"fork":false,"pushed_at":"2023-04-19T15:04:06.000Z","size":124,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T08:57:18.932Z","etag":null,"topics":["library","php","rss"],"latest_commit_sha":null,"homepage":"http://labs.shikiryu.com/SRSS/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chouchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-05-31T08:53:16.000Z","updated_at":"2023-04-13T19:14:47.000Z","dependencies_parsed_at":"2025-04-14T17:06:39.849Z","dependency_job_id":"23248946-653e-48c5-9df8-462e43c2a2a8","html_url":"https://github.com/Chouchen/ShikiryuRSS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chouchen/ShikiryuRSS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouchen%2FShikiryuRSS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouchen%2FShikiryuRSS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouchen%2FShikiryuRSS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouchen%2FShikiryuRSS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chouchen","download_url":"https://codeload.github.com/Chouchen/ShikiryuRSS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouchen%2FShikiryuRSS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263679238,"owners_count":23495014,"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":["library","php","rss"],"created_at":"2024-11-16T05:14:04.196Z","updated_at":"2025-07-05T04:05:41.176Z","avatar_url":"https://github.com/Chouchen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SћíкïяўЦЯSS \n\n\u003e PHP library reading and creating RSS\n\n**disclaimer:**\nThis class is functional. Anyway, use it only if you don't have other choices.  \nFor example, [Zend](http://framework.zend.com/manual/current/en/modules/zend.feed.introduction.html) and Symfony got their own RSS factory, don't add another one in.\n\n\n## :books: Table of Contents\n\n- [Installation](#package-installation)\n- [Usage](#rocket-usage)\n- [Features](#sparkles-features)\n- [Support](#hammer_and_wrench-support)\n- [Contributing](#memo-contributing)\n- [License](#scroll-license)\n\n## :package: Installation\n\n```sh\ncomposer install shikiryu/shikiryurss\n```\n\nor \n\n```php\ninclude '/path/to/this/library/autoload.php';\n```\n\n## :rocket: Usage\n\n----------------------------------\n\nHow to make it read RSS?\n\nFirst, we need to load the RSS :\n\n    $rss = SRSS::read('http://exemple.com/rss.xml');\n\nEasy, right? Then you can extract general information :\n\n    echo $rss-\u003etitle; // will display blog title\n\nThen, you can take care of articles. You can select a precise article :\n\n    $article1 = $rss-\u003egetItem(1); // or $rss-\u003egetFirst();\n\nOr looping them :\n\n    foreach($rss as $article) {\n        echo '\u003ca href=\"'.$article-\u003elink.'\"\u003e'. SRSSTools::formatDate('d/m/y', $item-\u003epubDate).' '.$item-\u003etitle.'';\n    }\n\nIf you like arrays, you can transform the RSS into an array :\n\n    $rssArray = $rss-\u003etoArray();\n\nYou can also save it into your server with :\n\n    $rss-\u003esave('/www/rss/rss.xml'); // example\n\nOr finally, you can display it with :\n\n    $rss-\u003eshow();\n\n----------------------------------\n\nHow to make it create RSS?\n\nFirst, we need to initialize the RSS :\n\n    $rss = SRSS::create();\n\nEasy, right? Then you can add general information :\n\n    $rss-\u003etitle = 'My Awesome Blog';\n    $rss-\u003elink = 'http://shikiryu.com/devblog/';\n    $rss-\u003edescription = 'is awesome';\n\nThose 3 are mandatory to validate your RSS, other options can be added.\nThen, you can add articles. Let's imagine $content contains an array from your database.\n\n    foreach($content as $item){\n        $rssitem = new Item(); // we create an item\n        $rssitem-\u003etitle = $item[\"title\"]; // adding title (option)\n        $rssitem-\u003elink = $item['link']; // adding link (option)\n        $rssitem-\u003epubDate = $item[\"date\"]; // date automatically transformed into RSS format (option)\n        $rssitem-\u003edescription = $item[\"text\"]; // adding description (mandatory)\n        $rss-\u003eaddItem($rssitem); // we add the item into our RSS\n    }\n\nThere are 2 functions to add item.\nThe first one will add items in the order you enter them, from top to bottom.\n\n    $rss-\u003eaddItem($item);\n\nThe other one does the opposite and add the next item in top of your RSS\n\n    $rss-\u003eaddItemBefore($item);\n\n----------------------------------\n\n## :sparkles: Features\n\n\u003cdl\u003e\n  \u003cdt\u003eRead every RSS 2.0\u003c/dt\u003e\n  \u003cdd\u003e\n    Based on RSS 2.0 specifications.\n  \u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003cdl\u003e\n  \u003cdt\u003eWrite and validate RSS 2.0 file\u003c/dt\u003e\n  \u003cdd\u003e\n    Based on RSS 2.0 specifications.\n  \u003c/dd\u003e\n\u003c/dl\u003e\n\n## :hammer_and_wrench: Support\n\nPlease [open an issue](https://github.com/Chouchen/ShikiryuRSS/issues) for support.\n\n\n## :memo: Contributing\n\nPlease contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/Chouchen/ShikiryuRSS/pulls).\n\n## :scroll: License\n\n[Creative Commons Attribution NonCommercial (CC-BY-NC)](\u003chttps://tldrlegal.com/license/creative-commons-attribution-noncommercial-(cc-nc)\u003e) © [Chouchen](https://github.com/Chouchen/)\n\nAll documentation @ http://labs.shikiryu.com/SRSS/#_how.\n\nContact : https://shikiryu.com/contact\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouchen%2Fshikiryurss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchouchen%2Fshikiryurss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouchen%2Fshikiryurss/lists"}