fof / pwa
Turn your flarum site into a progressive web app!
Fund package maintenance!
2.0.0
2026-10-11 12:35 UTC
Requires
- php: ^8.3
- ext-openssl: *
- flarum/core: ^2.0.0
- kreait/firebase-php: ^8.4.0
- minishlink/web-push: ^11.0.0
- spomky-labs/base64url: ^2.0.4
Requires (Dev)
- flarum/gdpr: ^2.0.0
- flarum/phpstan: ^2.0.0
- flarum/testing: ^2.0.0
Suggests
- ext-gmp: This can improve push notification performance.
Provides
None
Conflicts
None
Replaces
- 2.x-dev
- 2.0.0
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 1.x-dev
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- dev-fix/invalid-push-subscription-keys
- dev-fix/push-subscription-ownership
- dev-fix/vapid-subscription-reset
- dev-feat/pwa-orientation
- dev-feat/display-mode
- dev-feat/manifest-extender
- dev-feat/ios-pull-to-refresh
- dev-ed/ios-pull-to-refresh
This package is auto-updated.
Last update: 2026-10-11 15:18:43 UTC
README
A Flarum extension that lets users install your forum as an app, adding a shortcut to their home screen or desktop. It also adds push notification support. Configure both from your admin dashboard.
Installation
composer require fof/pwa
Updating
composer update fof/pwa
For Developers
Extending the manifest
Customize the manifest in your extension's or forum's extend.php:
use Flarum\Extend; use FoF\PWA\Extend as PwaExtend; return [ (new Extend\Conditional()) ->whenExtensionEnabled('fof-pwa', fn () => [ (new PwaExtend\Manifest()) ->modify(function (array $manifest): array { $manifest['categories'] = ['social']; return $manifest; }), ]), ];
Callbacks receive the completed manifest and must return the modified array.
They run in registration order and also apply to the admin preview.
modify() also accepts an invokable class with constructor dependency injection.
Credit
- Billy Wilcosky – for starting PWA support for Flarum.
- Alexander Skvortsov – for reviving and expanding the extension with push notification support.
- FriendsOfFlarum – current maintainers.