archlinux-de / flarum-discussion-feed
Simple and efficient Atom feed for Flarum
Installs: 1 649
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- php: ^8.1
- flarum/core: ^1.6.0
Requires (Dev)
- nesbot/carbon: ^2.62.1
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.7
README
This simple extensions generates a feed of recent created discussions. A scheduled task will regulary update the feed on disk so it can be served by your web server without invoking Flarum or PHP. This is benefitial if you have a lot of subscribers pulling your feed in short intervals.
Installation
Install and enable the extension
composer require archlinux-de/flarum-discussion-feed
Now enable the extension in your admin backend.
Web server setup
You might want to add the following rule to your Nginx config
location = /feed.xml {
types { } default_type "application/atom+xml; charset=utf-8";
expires 15m;
}
Enable Flarum's scheduler
Refer to schedule:run to setup your Flarum scheduler.
Permissions
Make sure the user which runs the scheduler has permissions to create the feed.xml file within Flarum's public directory.