Search by

fof / pwa

clarkwinkelmanndatitisevimorlandGreXXL

Turn your flarum site into a progressive web app!

Package info

github.com/FriendsOfFlarum/pwa

Homepage

Forum

Type:flarum-extension

pkg:composer/fof/pwa

Fund package maintenance!

Website

Statistics

Installs: 1 447

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 1

2.0.0 2026-10-11 12:35 UTC

README

License Latest Stable Version

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

Links