PHPackages                             webup/laravel-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. [API Development](/categories/api)
4. /
5. webup/laravel-push

ActiveLibrary[API Development](/categories/api)

webup/laravel-push
==================

Bridge between a Laravel application and a webup/push instance

v1.1.0(2y ago)0367MITPHPPHP &gt;=7.2

Since Jul 22Pushed 2y ago4 watchersCompare

[ Source](https://github.com/agence-webup/laravel-push)[ Packagist](https://packagist.org/packages/webup/laravel-push)[ RSS](/packages/webup-laravel-push/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel Push
============

[](#laravel-push)

This package serves as a bridge between a Laravel application and a [webup/push](https://github.com/matthmart/push) instance.

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

[](#installation)

### Require package with composer

[](#require-package-with-composer)

```
$ composer require webup/laravel-push

```

### Configure base URI in the environment

[](#configure-base-uri-in-the-environment)

Set the `PUSH_API_BASE_URI` environment variable to the URI for *webup/push*.

Please note *webup/push* listens on port `3000` by default.

### Configure service in config/services.php

[](#configure-service-in-configservicesphp)

```
'push_api' => [
        'base_uri' => env('PUSH_API_BASE_URI'),
        'app_name' => env('PUSH_API_APP_NAME')
    ]
```

---

How to use the Token Jobs
-------------------------

[](#how-to-use-the-token-jobs)

### AssignToken

[](#assigntoken)

`Webup\LaravelPush\Jobs\Token\AssignToken` can be called directly from a controller or pretty much any class you need it in. To do so you must import the job in your class with the following `use` statement:

```
use Webup\LaravelPush\Jobs\Token\AssignToken;
```

You can then perform a `dispatch_now()`, while specifying an `id`, which is meant to identify which user/device/whatever the Token is linked to, as well as an `array` containing:

- the `token` (the device's FCM push token)
- the `platform` (iOS or Android, respectively 1 and 2)
- the device's `language` code.

For example:

```
dispatch_now(new AssignToken(
    auth()->user()->id, // In this case, user to whom the token is assigned
    [
        'token' => $push_token,     // The device's FCM push token
        'platform' => $device_type, // iOS (1) or Android (2)
        'language' => 'fr',         // The device's language code
    ]
));
```

### RemoveToken

[](#removetoken)

`Webup\LaravelPush\Jobs\Token\RemoveToken` works exactly the same as *AssignToken*, but serves the purpose of removing the token from your database.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~693 days

Total

2

Last Release

1064d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/addc1cf5f44349ba20c55256d0fed71183ac31489031ae3210b9f3899f0e4f5b?d=identicon)[Agence Webup](/maintainers/Agence%20Webup)

---

Top Contributors

[![szhrs](https://avatars.githubusercontent.com/u/13709684?v=4)](https://github.com/szhrs "szhrs (3 commits)")[![Biptaste](https://avatars.githubusercontent.com/u/251481?v=4)](https://github.com/Biptaste "Biptaste (2 commits)")

### Embed Badge

![Health badge](/badges/webup-laravel-push/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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