PHPackages                             ridhopujiono/fcm-send-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. ridhopujiono/fcm-send-notification

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

ridhopujiono/fcm-send-notification
==================================

This makes it easier for you to send notifications with FCM. be it sending personally or to all users

00PHP

Since Sep 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ridhopujiono/LaravelFcmSendNotification)[ Packagist](https://packagist.org/packages/ridhopujiono/fcm-send-notification)[ RSS](/packages/ridhopujiono-fcm-send-notification/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Installation
============

[](#installation)

```
composer require ridhopujiono/fcm-send-notification

```

Before Usage
============

[](#before-usage)

You must insert a new column for the User model

```
php artisan make:migration add_device_token_to_users

```

After run that command, open the migration and edit into this

```
Schema::table('users', function (Blueprint  $table) {
    $table->string('device_token')->nullable();
});

```

Do Migrate

```
php artisan migrate

```

Set env file

- Open your .env file
- Add new line in bottom and do add code like this

    `SERVER_KEY_FCM='YOUR SERVER KEY FROM FIREBASE'`

Notice :

> you have to fill in the device token field yourself. somehow. because in general to retrieve the device token a client-side language is needed (such as Javascript)

Usage
=====

[](#usage)

Use first

```
use RidhoPujiono\FcmSendNotification;

```

Send notification to all user

```
FcmSendNotification::sendNotificationAll($title, $body, $urlClick);

```

Send notification to specific user

```
FcmSendNotification::sendNotificationSingle($user_id, $title, $body);

```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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/dedc5f06fc42d8dbd41ef8b284ef4155b59e20252be22d549b808aff35d7bd12?d=identicon)[ridhopujiono](/maintainers/ridhopujiono)

---

Top Contributors

[![ridhopujiono](https://avatars.githubusercontent.com/u/68780041?v=4)](https://github.com/ridhopujiono "ridhopujiono (1 commits)")

### Embed Badge

![Health badge](/badges/ridhopujiono-fcm-send-notification/health.svg)

```
[![Health](https://phpackages.com/badges/ridhopujiono-fcm-send-notification/health.svg)](https://phpackages.com/packages/ridhopujiono-fcm-send-notification)
```

###  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)
