fof / pwa
Turn your flarum site into a progressive web app!
Fund package maintenance!
Requires
- php: ^8.1
- ext-gmp: *
- flarum/core: ^1.8
- kreait/firebase-php: ^7.16
- minishlink/web-push: ^9.0.2
- spomky-labs/base64url: ^2.0.4
Requires (Dev)
- flarum/phpstan: ^1.0
Suggests
- ext-gmp: This can improve push notification performance.
Replaces
This package is auto-updated.
Last update: 2026-08-12 11:48:25 UTC
README
A Flarum extension. Progressive Web App support for Flarum. Configure a progressive web app for your flarum installation, all from your admin dashboard! Also now supports push notifications!
Please see resources like https://medium.com/pynk/what-is-a-pwa-and-how-to-install-add-to-home-screen-progressive-web-apps-e6e8087d9ad0 for more information on how to install this.
Credit
Thank you to Billy Wilcosky (https://github.com/zerosonesfun) for starting PWA support for Flarum. This extension uses his original ServiceWorker and offline html page code.
His original Discuss thread has been linked here: https://discuss.flarum.org/d/21487-pwa-progressive-web-app
TODO
- Verify Support for subdirectory installations
- Caching and expanded offline support
- Support configuration of ALL webmanifest attributes, especially:
- Related Applications
- Categories
- Language
- Bugfixes and minor improvements
Installation
composer require fof/pwa
Note
Flarum 1.x depends on older versions of Monolog and psr/log. As a result, the latest compatible version of kreait/firebase-php depends on firebase/php-jwt, which Composer blocks due to the disputed advisory PKSA-y2cr-5h3j-g3ys.
To install this extension on Flarum 1.x, add a targeted exception for this advisory and ignore the PHP platform requirement:
composer config policy.advisories.ignore-id PKSA-y2cr-5h3j-g3ys composer require fof/pwa --ignore-platform-req=php
The PHP platform requirement is ignored because newer kreait/firebase-php releases cannot be installed alongside Flarum 1.x dependencies, and the compatible releases do not declare support for PHP 8.5.
Updating
composer update fof/pwa