PHPackages                             idstack/laravel-fcm - 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. idstack/laravel-fcm

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

idstack/laravel-fcm
===================

Package to send Firebase notification cross Laravel Application

1.0.0(8y ago)012MITPHPPHP &gt;=5.4.0

Since Nov 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/idstck/laravel-fcm)[ Packagist](https://packagist.org/packages/idstack/laravel-fcm)[ RSS](/packages/idstack-laravel-fcm/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Simple Laravel FCM
==================

[](#simple-laravel-fcm)

Simple package for using FCM as Push Notification. With multiple token or device ID and send with topics.

### Installation

[](#installation)

You can pull the package via composer :

```
$ composer require idstack/laravel-fcm
```

Register the service provider :

```
'Providers' => [
   ...
   Idstack\Fcm\FcmServiceProvider::class,
]
```

Optional using facade:

```
'aliases' => [
    ...
    'Fcm' => Idstack\Fcm\Facades\Fcm::class,
];
```

Publish the config file to define your server key :

```
php artisan vendor:publish --provider="Idstack\Fcm\FcmServiceProvider"
```

This is the contents of the published file:

```
return [
    /**
     * Insert your FCM Server Key Here
     * Or you can add in env file with FCM_SERVER_KEY variable
     */
    'fcm_server_key' => env('FCM_SERVER_KEY','')
];
```

### Usage

[](#usage)

This sample usage for sending notification to any devices with several information like title and body notification :

```
fcm()
    ->data([
        'title' => 'Test FCM',
        'body' => 'This is a test of FCM',
    ])
    ->to($recipients); // $recipients must an array
```

This sample usage for sending notification using topics with several information like title and body notification :

```
fcm()
    ->data([
        'title' => 'Test FCM',
        'body' => 'This is a test of FCM',
    ])
    ->toTopics($recipients); // $recipients must an array
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3099d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98f8eadbb1f78e14e30ebc768e99ab3deca512c1b8b29e558468c35fcb72875f?d=identicon)[idstack](/maintainers/idstack)

### Embed Badge

![Health badge](/badges/idstack-laravel-fcm/health.svg)

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

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