PHPackages                             saverty/firebase-notification - 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. saverty/firebase-notification

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

saverty/firebase-notification
=============================

Send Firebase Notification

1.0.2(6y ago)03MITPHPPHP ^7.1

Since Jul 17Pushed 6y agoCompare

[ Source](https://github.com/saverty/Laravel-Firebase-Notification)[ Packagist](https://packagist.org/packages/saverty/firebase-notification)[ Docs](https://github.com/saverty/firebase-notification)[ RSS](/packages/saverty-firebase-notification/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laravel Firebase Notification
=============================

[](#laravel-firebase-notification)

Send notification using Firebase and Laravel

### Download the package using composer

[](#download-the-package-using-composer)

```
composer require ...

```

### Add the package in app.php

[](#add-the-package-in-appphp)

```
"providers" => [
	"Saverty/FirebaseNotification::class"
]

```

### Publish the package

[](#publish-the-package)

```
php artisan vendor publish

```

### Edit config/firebase-notification.php

[](#edit-configfirebase-notificationphp)

```
//Add entities you want to notify
return [
	'tables' => ['users', '...']
];

```

### Run the migrations

[](#run-the-migrations)

```
php artisan migrate

```

### Add the Trait in the model

[](#add-the-trait-in-the--model)

```
use Saverty\FirebaseNotification\FirebaseNotificationTrait;

class User extends Authenticatable{
	use FirebaseNotificationTrait;

{

```

use Notifiable;

use FirebaseNotificationTrait;

### Features

[](#features)

#### Set the FCM Token

[](#set-the-fcm-token)

```
$user = Auth::user();
$user->setFcmToken('token');

```

#### Send notification to a specific user

[](#send-notification-to-a-specific-user)

```
$user = Auth::user();
$user->sendFirebaseNotification('title', 'This is the body', ['data' => 'this is an example'], 'https://google.fr);

```

#### Send notification to many users

[](#send-notification-to-many-users)

```
$users = User::all();
FirebaseNotification::sendTo($users,'title', 'This is the body', [], null)

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67e651c79bd8a41774573c78312ccbd8428a04effe552b4921e29fab6b7bfaab?d=identicon)[AvertySteve](/maintainers/AvertySteve)

---

Top Contributors

[![saverty](https://avatars.githubusercontent.com/u/13039385?v=4)](https://github.com/saverty "saverty (6 commits)")

---

Tags

savertyfirebase-notification

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saverty-firebase-notification/health.svg)

```
[![Health](https://phpackages.com/badges/saverty-firebase-notification/health.svg)](https://phpackages.com/packages/saverty-firebase-notification)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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