{"id":20410024,"url":"https://github.com/vdlp/oc-rssfetcher-plugin","last_synced_at":"2025-04-12T15:53:27.372Z","repository":{"id":47291348,"uuid":"141397847","full_name":"vdlp/oc-rssfetcher-plugin","owner":"vdlp","description":"A great October CMS plugin which allows you to fetch RSS items from various sources to put on your website.","archived":false,"fork":false,"pushed_at":"2024-03-14T13:58:52.000Z","size":129,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-03-14T15:19:28.588Z","etag":null,"topics":["feed","laravel","october-cms","octobercms","octobercms-plugin","php","rss","rss-items","vdlp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdlp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-07-18T07:28:06.000Z","updated_at":"2024-05-06T12:46:36.416Z","dependencies_parsed_at":"2024-03-14T15:17:59.685Z","dependency_job_id":null,"html_url":"https://github.com/vdlp/oc-rssfetcher-plugin","commit_stats":{"total_commits":60,"total_committers":4,"mean_commits":15.0,"dds":0.2833333333333333,"last_synced_commit":"9e9c1f6b176b6b974b7ea7019f0d144100532510"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-rssfetcher-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-rssfetcher-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-rssfetcher-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-rssfetcher-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdlp","download_url":"https://codeload.github.com/vdlp/oc-rssfetcher-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248592195,"owners_count":21130204,"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","laravel","october-cms","octobercms","octobercms-plugin","php","rss","rss-items","vdlp"],"created_at":"2024-11-15T05:44:37.879Z","updated_at":"2025-04-12T15:53:27.348Z","avatar_url":"https://github.com/vdlp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg height=\"60px\" width=\"60px\" src=\"https://plugins.vdlp.nl/octobercms/icons/Vdlp.RssFetcher.svg\" \u003e\n\t\u003ch1 align=\"center\"\u003eVdlp.RssFetcher\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cem\u003eFetches RSS/Atom feeds to put on your website. It can be automated using a cronjob or triggered manually.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/php/vdlp/oc-rssfetcher-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/license/vdlp/oc-rssfetcher-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/v/vdlp/oc-rssfetcher-plugin/latest\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/dt/vdlp/oc-rssfetcher-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/cms/October%20CMS\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/type/plugin\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```shell\ncomposer require vdlp/oc-rssfetcher-plugin\n```\n\n## RSS \u0026 Atom feeds\n\nThe plugin uses the `laminas/laminas-feed` package to parse the RSS and/or Atom feeds. For more information on this package goto https://docs.laminas.dev/laminas-feed/\n\n## Components\n\nThe plugin is configured with 4 example sources and has a few components which help you to display items and/or sources on your website.\n\n### Items\n\nShows a list of most recent RSS items limited on the maximum number of items provided by you.\n\nAn example of implementation code in your CMS page:\n\n````\ntitle = \"A list of items\"\nurl = \"/items\"\nlayout = \"default\"\nis_hidden = 0\n\n[rssItems]\nmaxItems = 10\n==\n{% component 'rssItems' %}\n````\n\n### PaginatableItems\n\nShows a list of most recent RSS items with an additional paginator element.\n\nAn example of implementation code in your CMS page:\n\n````\ntitle = \"A list of items (paginatable)\"\nurl = \"/items\"\nlayout = \"default\"\nis_hidden = 0\n\n[rssPaginatableItems]\nitemsPerPage = 3\n==\n{% component 'rssPaginatableItems' %}\n````\n\n### Sources\n\nShows a list of sources.\n\nAn example of implementation code in your CMS page:\n\n````\ntitle = \"A list of sources\"\nurl = \"/sources\"\nlayout = \"default\"\nis_hidden = 0\n\n[rssSources]\n==\n{% component 'rssSources' %}\n````\n\n## Events\n\nTo manipulate RSS items there are a few events which can be used:\n- `vdlp.rssfetcher.item.processTitle`\n- `vdlp.rssfetcher.item.processContent`\n- `vdlp.rssfetcher.item.processLink`\n\nUse them like this:\n\n```\nEvent::listen('vdlp.rssfetcher.item.processTitle', function (\u0026$title) {\n    $title = $title . 'A';\n});\n\nEvent::listen('vdlp.rssfetcher.item.processContent', function (\u0026$content) {\n    $content = strip_tags($content);\n});\n```\n## Reporting Widgets\n\nThis plugin contains also a **RSS Headlines** widget to show the latest headlines on your Dashboard.\nThis widget has three configurable properties: `maxItems`, `title` and `dateFormat`.\n\n## Cronjob\n\nThere are many ways to configure a cronjob. Here's a basic example of cronjob configuration line:\n\n````\n5/* * * * php path/to/artisan vdlp:fetch-rss \u003e\u003e /dev/null 2\u003e\u00261\n````\n\nThe above line takes care of fetching all sources every 5 minutes.\n\nThe `vdlp:fetch-rss` command takes an optional `source_id` argument.\nProvide the source ID if you want to fetch only 1 source at that time.\n\n## Execute from code\n\nIn your plugin code you can also use the following code to execute the Artisan command:\n\n````\n\u003c?php\n\nuse Artisan;\n// ...\n\nArtisan::call('vdlp:fetch-rss', ['source' =\u003e 2]);\n````\n\nOr using the `RssFetcher` singleton:\n\n````\nRssFetcher::instance()-\u003efetch(2);\n````\n\n## Issues\n\nIf you have issues using this plugin. Please create an issue on GitHub or contact us at [octobercms@vdlp.nl]().\n\n## Contribution\n\nAny help is appreciated. Or feel free to create a Pull Request on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-rssfetcher-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdlp%2Foc-rssfetcher-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-rssfetcher-plugin/lists"}