PHPackages                             torgodly/filament-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. torgodly/filament-fcm

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

torgodly/filament-fcm
=====================

Firebase Cloud Messaging integration to Native FilamentPHP Notification Package

v1.0.1(2mo ago)00MITPHP ^8.1|^8.2

Since May 3Compare

[ Source](https://github.com/torgodly/filament-fcm)[ Packagist](https://packagist.org/packages/torgodly/filament-fcm)[ GitHub Sponsors](https://github.com/torgodly)[ RSS](/packages/torgodly-filament-fcm/feed)WikiDiscussions Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

[![Screenshot](https://raw.githubusercontent.com/torgodly/filament-fcm/master/arts/torgodly-fcm.jpg)](https://raw.githubusercontent.com/torgodly/filament-fcm/master/arts/torgodly-fcm.jpg)

Filament Firebase Integration
=============================

[](#filament-firebase-integration)

[![Latest Stable Version](https://camo.githubusercontent.com/dac21c009e610b806286220d8efc0f7332173130b466c430b8269253b7efa103/68747470733a2f2f706f7365722e707567782e6f72672f746f72676f646c792f66696c616d656e742d66636d2f76657273696f6e2e737667)](https://packagist.org/packages/torgodly/filament-fcm)[![License](https://camo.githubusercontent.com/6515e329ac8c0d41e0c80547a9512606911a702c78f2ac91d67d76926f2b7e53/68747470733a2f2f706f7365722e707567782e6f72672f746f72676f646c792f66696c616d656e742d66636d2f6c6963656e73652e737667)](https://packagist.org/packages/torgodly/filament-fcm)[![Downloads](https://camo.githubusercontent.com/75634bd67baec1481abe3855b7f60c04bb422e50a41bf233464153066987b405/68747470733a2f2f706f7365722e707567782e6f72672f746f72676f646c792f66696c616d656e742d66636d2f642f746f74616c2e737667)](https://packagist.org/packages/torgodly/filament-fcm)

Firebase Cloud Messaging integration to Native FilamentPHP Notification Package

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

[](#installation)

```
composer require torgodly/filament-fcm
```

after install your package you need to update this keys in your `.env` file

```
# Firebase Project
FIREBASE_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_DATABASE_URL=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MESSAGING_SENDER_ID=
FIREBASE_APP_ID=
FIREBASE_MEASUREMENT_ID=

# Firebase Admin SDK
FIREBASE_CREDENTIALS=

# Firebase Cloud Messaging
FIREBASE_VAPID=

# Firebase Alert Sound
FCM_ALERT_SOUND=
```

after update clear config

```
php artisan config:clear
```

then please run this command

```
php artisan filament-fcm:install
```

if you are not using this package as a plugin please register the plugin on `/app/Providers/Filament/AdminPanelProvider.php`

```
->plugin(\Torgodly\FilamentFcm\FilamentFcmPlugin::make()
)
```

Usage
-----

[](#usage)

you can use the filament native notification and we add some macro for you

```
use Filament\Notifications\Notification;

Notification::make('send')
    ->title('Test Notifications')
    ->body('This is a test notification')
    ->icon('heroicon-o-bell')
    ->color('success')
    ->actions([
    \Filament\Notifications\Actions\Action::make('view')
        ->label('View')
        ->url('https://google.com')
        ->markAsRead()
    ])
    ->sendToFCM(
        user: auth()->user(),
        data: [
            'key' => 'value'
        ],
        sendToDatabase: false,
        type: 'fcm-web' // or fcm-api
    )
```

or you can send it directly from the user model

```
$user->notifyFCMSDK(
    message: $this->message,
    type: $this->provider,
    title: $this->title,
    url: $this->url,
    image: $this->image,
    icon: $this->icon,
    data: [
        'url' => $this->url,
        'id' => $this->model_id,
        'actions' => [],
        'body' => $this->message,
        'color' => null,
        'duration' => null,
        'icon' => $this->icon,
        'iconColor' => null,
        'status' => null,
        'title' => $this->title,
        'view' => null,
        'viewData' => null,
        'data'=> $this->data
    ],
    sendToDatabase: false
);
```

Publish Assets
--------------

[](#publish-assets)

you can publish config file by use this command

```
php artisan vendor:publish --tag="filament-fcm-config"
```

you can publish views file by use this command

```
php artisan vendor:publish --tag="filament-fcm-views"
```

you can publish migrations file by use this command

```
php artisan vendor:publish --tag="filament-fcm-migrations"
```

Other Filament Packages
-----------------------

[](#other-filament-packages)

Checkout our [Awesome Torgodly](https://github.com/torgodly/awesome)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

82d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57685643?v=4)[Abdullah al-hajj](/maintainers/torgodly)[@torgodly](https://github.com/torgodly)

---

Tags

phplaravelfirebaseintegrationfilamentphpgoogle-firebasefilament-notifications

### Embed Badge

![Health badge](/badges/torgodly-filament-fcm/health.svg)

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

###  Alternatives

[tomatophp/filament-fcm

Firebase Cloud Messaging integration to Native FilamentPHP Notification Package

202.2k1](/packages/tomatophp-filament-fcm)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16121.5k](/packages/backstage-mails)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[tomatophp/filament-accounts

Manage your multi accounts inside your app using 1 table with multi auth and a lot of integrations

748.6k7](/packages/tomatophp-filament-accounts)

PHPackages © 2026

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