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 2w 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 36% 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

3146d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29011982?v=4)[IDStack](/maintainers/idstack)[@idstack](https://github.com/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

[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[illuminate/notifications

The Illuminate Notifications package.

483.0M1.1k](/packages/illuminate-notifications)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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