PHPackages                             jsefton/web-push - 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. jsefton/web-push

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

jsefton/web-push
================

Allows web push notifications to be sent to micro service

050PHP

Since Oct 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jsefton/web-push)[ Packagist](https://packagist.org/packages/jsefton/web-push)[ RSS](/packages/jsefton-web-push/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Web Push
========

[](#web-push)

This package allows you to connect into a micro service for handling web push notifications.

### Installation

[](#installation)

```
composer require jsefton/web-push
```

### Usage

[](#usage)

```
Push::init("API_KEY")
    ->setMode('dev')
    ->send([
        'site' => 'default',
        'payload' => [
            'title' => $data['title'],
            'body' => $data['message']
        ]
    ]);
```

#### Methods

[](#methods)

`init`First method that should be called passing in a valid API key.

`setMode`Allows to switch between different API modes and domains that are preset.

`setDomain`Allows to override the API domain that requests are sent too.

`send`Array of data that is passed onto the API. Requires `payload` as an array of supportted web push data. `site` optional to bind for a specific site.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41b413127c7499a63bcb5c5ae903bd8961ba29300b6ccbda873e0c4bf06d0a02?d=identicon)[jsefton](/maintainers/jsefton)

---

Top Contributors

[![jsefton](https://avatars.githubusercontent.com/u/4114741?v=4)](https://github.com/jsefton "jsefton (11 commits)")

### Embed Badge

![Health badge](/badges/jsefton-web-push/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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