PHPackages                             minishlink/web-push-php-example - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. minishlink/web-push-php-example

ActiveProject[Mail &amp; Notifications](/categories/mail)

minishlink/web-push-php-example
===============================

An example for sending Web Push notifications, using web-push-php

v4.0.0(2y ago)27513.0k↓16.7%90[5 issues](https://github.com/Minishlink/web-push-php-example/issues)[2 PRs](https://github.com/Minishlink/web-push-php-example/pulls)MITJavaScript

Since Apr 21Pushed 2y ago14 watchersCompare

[ Source](https://github.com/Minishlink/web-push-php-example)[ Packagist](https://packagist.org/packages/minishlink/web-push-php-example)[ RSS](/packages/minishlink-web-push-php-example/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (15)Used By (0)

Web Push example in PHP
=======================

[](#web-push-example-in-php)

Navigating through the commits and files will help you build:

- on the client
    - a user friendly opt-in push notification button
- on the server
    - an endpoint for managing your push notification subscriptions
    - an endpoint that triggers push notification thanks to [web-push-php](https://github.com/web-push-libs/web-push-php)

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

[](#requirements)

- Chrome or Firefox
- [composer](https://getcomposer.org/)
- PHP 8.0+
    - gmp
    - mbstring
    - curl
    - openssl

PHP 7.2 is no longer maintained, but you can checkout the `v3.x` tags. PHP 7.1 is no longer maintained, but you can checkout the `v2.x` tags. PHP 5.6+ is no longer maintained, but you can checkout the `v1.x` tags.

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

[](#installation)

```
$ composer create-project minishlink/web-push-php-example
$ cd web-push-php-example
```

You can change the VAPID keys in the [keys](./keys) folder with [this guide](https://github.com/web-push-libs/web-push-php#authentication-vapid). Don't forget to update the public key in [app.js](./src/app.js) too.

Usage
-----

[](#usage)

```
$ php -S localhost:8000 router.php
```

And open [localhost:8000](http://localhost:8000).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

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 ~237 days

Recently: every ~424 days

Total

11

Last Release

944d ago

Major Versions

1.0.2 → v2.0.02018-03-17

v1.x-dev → v2.1.02018-03-17

v2.x-dev → v3.0.02020-08-02

v3.0.0 → v4.0.02023-10-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f05ac1f496fce43aa550c27de8413f712d6021a2232eebf497c336cf09929c0?d=identicon)[Minishlink](/maintainers/Minishlink)

---

Top Contributors

[![Minishlink](https://avatars.githubusercontent.com/u/82368?v=4)](https://github.com/Minishlink "Minishlink (34 commits)")[![codeistalk](https://avatars.githubusercontent.com/u/35674135?v=4)](https://github.com/codeistalk "codeistalk (1 commits)")[![tbl0605](https://avatars.githubusercontent.com/u/3315731?v=4)](https://github.com/tbl0605 "tbl0605 (1 commits)")

---

Tags

notificationsphppush-notificationspwapwa-appswebpush

### Embed Badge

![Health badge](/badges/minishlink-web-push-php-example/health.svg)

```
[![Health](https://phpackages.com/badges/minishlink-web-push-php-example/health.svg)](https://phpackages.com/packages/minishlink-web-push-php-example)
```

###  Alternatives

[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[bentools/webpush-bundle

Send push notifications through Web Push Protocol to your Symfony users.

71274.3k](/packages/bentools-webpush-bundle)[minishlink/web-push-bundle

Symfony Bundle around the WebPush library

56318.3k2](/packages/minishlink-web-push-bundle)[netflie/laravel-notification-whatsapp

Laravel notification driver for WhatsApp

176173.9k](/packages/netflie-laravel-notification-whatsapp)

PHPackages © 2026

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