PHPackages                             con4gis/pwa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. con4gis/pwa

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

con4gis/pwa
===========

Adds PWA functionality to a contao application.

v3.0.0(3mo ago)91.6k1[4 PRs](https://github.com/Kuestenschmiede/PwaBundle/pulls)1LGPL-3.0-or-laterPHPPHP ^8.1CI passing

Since May 16Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/Kuestenschmiede/PwaBundle)[ Packagist](https://packagist.org/packages/con4gis/pwa)[ RSS](/packages/con4gis-pwa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (55)Used By (1)

con4gis-PwaBundle
=================

[](#con4gis-pwabundle)

Overview
--------

[](#overview)

Turn your Contao Website into a [progressive web app](https://developers.google.com/web/progressive-web-apps/). The con4gis-PwaBundle provides everything you need for basic PWA functionality, including generating a service worker script and a manifest file.

**Features include:**

- Configuration of required parameters for the webmanifest
- Select a pwa configuration in the page root. On submit the service worker and manifest for this page root will be generated for you.
- Multiple offline behaviours: choose whether you want to cache everything or if you always want to redirect to a chosen offline page.
- WebPushConfiguration: configure the web push library in the backend so your users can register for push notifications.
- Add icons for app splashscreens (Android &amp; iOS)

Installation
------------

[](#installation)

Via composer:

```
composer require con4gis/pwa

```

Alternatively, you can use the Contao Manager to install the con4gis-PwaBundle.

Requirements
------------

[](#requirements)

- [Contao](https://github.com/contao/core-bundle) (latest stable release)
- [CoreBundle](https://github.com/Kuestenschmiede/CoreBundle/releases) (*latest stable release*)
- [WebPushBundle](https://github.com/Minishlink/web-push-bundle) (3.\* (latest))
- The [php-gmp](https://www.php.net/manual/en/book.gmp.php) extension is required by the [used web-push-library](https://github.com/web-push-libs/web-push-php) and has to be installed/activated if the installation failes for this reason

Usage
-----

[](#usage)

This bundles provides two front end modules for contao:

***PWA module (add manifest)***

Creates the required HTML code to load the manifest file and the service worker. Can be included anywhere on the page since it contains no visible elements by itself.

***Push subscription button***

Creates the button to subscribe to push notifications as well as loading the javascript needed to handle the subscription. The button comes unstyled, but can be accessed via the "btn-push-subscribe"-ID for individual styling.

Sending a notification
----------------------

[](#sending-a-notification)

There are three different ways to send push notifications with this bundle:

- Console Command (`con4gis:send-push `)
- Backend Module (Create a new dataset and store it - it won't be stored in the database but is sent to all subscribed users instead)
- Sending a notification programmatically

To send a notification in one of your scripts, you have to create a PushNotificationEvent and use the Symfony event dispatcher.

```
// get the event dispatcher
$eventDispatcher = $this->eventDispatcher;
// instantiate event
$event = new PushNotificationEvent();
// this sends the notification to every subscribed user. You can send a notification to only one subscription, too
$event->setSendToAll(true);
// set message contents
$event->setTitle($title);
$event->setMessage($content);
// dispatch the event
$eventDispatcher->dispatch($event::NAME, $event);
```

Documentation
-------------

[](#documentation)

Visit [docs.con4gis.org](https://docs.con4gis.org) for a user documentation. You can also contact us via the support forum there.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

49

Last Release

91d ago

Major Versions

v1.6.3 → v2.0.02020-02-25

v2.8.7 → v3.0.02026-02-16

PHP version history (2 changes)v2.4.1PHP ^7.4 || ^8.0

v2.7.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/02221ea4af1d10e1e1ef091b8eb768cc8ab864fd1cbc8f969c1b249ec9543282?d=identicon)[coastforge](/maintainers/coastforge)

---

Top Contributors

[![coastforge-mei](https://avatars.githubusercontent.com/u/1382479?v=4)](https://github.com/coastforge-mei "coastforge-mei (142 commits)")[![coastforge-cro](https://avatars.githubusercontent.com/u/17297529?v=4)](https://github.com/coastforge-cro "coastforge-cro (111 commits)")[![croastforge](https://avatars.githubusercontent.com/u/162104287?v=4)](https://github.com/croastforge "croastforge (19 commits)")[![Tomatenmarc22](https://avatars.githubusercontent.com/u/111575074?v=4)](https://github.com/Tomatenmarc22 "Tomatenmarc22 (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![maltedv](https://avatars.githubusercontent.com/u/49306981?v=4)](https://github.com/maltedv "maltedv (4 commits)")[![tcurdt](https://avatars.githubusercontent.com/u/13697?v=4)](https://github.com/tcurdt "tcurdt (3 commits)")[![coastforge-rro](https://avatars.githubusercontent.com/u/35964536?v=4)](https://github.com/coastforge-rro "coastforge-rro (2 commits)")

---

Tags

con4giscontao-bundlecontaopwaProgressive Web Appcon4gisc4g

### Embed Badge

![Health badge](/badges/con4gis-pwa/health.svg)

```
[![Health](https://phpackages.com/badges/con4gis-pwa/health.svg)](https://phpackages.com/packages/con4gis-pwa)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

16083.3k](/packages/erag-laravel-pwa)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[mvo/contao-group-widget

Adds a new group widget that allows repeating a set of DCA fields.

28124.3k31](/packages/mvo-contao-group-widget)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
