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

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

tomatophp/filament-fcm
======================

Firebase Cloud Messaging integration to Native FilamentPHP Notification Package

v1.0.10(1y ago)202.2k4[1 issues](https://github.com/tomatophp/filament-fcm/issues)1MITPHPPHP ^8.1|^8.2

Since Jun 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tomatophp/filament-fcm)[ Packagist](https://packagist.org/packages/tomatophp/filament-fcm)[ GitHub Sponsors](https://github.com/3x1io)[ RSS](/packages/tomatophp-filament-fcm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (1)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-fcm/master/arts/3x1io-tomato-fcm.jpg)](https://raw.githubusercontent.com/tomatophp/filament-fcm/master/arts/3x1io-tomato-fcm.jpg)

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

[](#filament-firebase-integration)

[![Latest Stable Version](https://camo.githubusercontent.com/0bd01e74399cfb62900e355d5c3f87341d88850b10dddb59ad101a6afd798185/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2f76657273696f6e2e737667)](https://packagist.org/packages/tomatophp/filament-fcm)[![License](https://camo.githubusercontent.com/82932de4c0fae1fee75215a0bd787789a99159b3e0a77fb33ea38ad6cd85ac7d/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2f6c6963656e73652e737667)](https://packagist.org/packages/tomatophp/filament-fcm)[![Downloads](https://camo.githubusercontent.com/d69c64e8cb4fb362aac35d1efe76279ae69031760b72834b0f4c5e199355747d/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d66636d2f642f746f74616c2e737667)](https://packagist.org/packages/tomatophp/filament-fcm)

Firebase Cloud Messaging integration to Native FilamentPHP Notification Package

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

[](#installation)

```
composer require tomatophp/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(\TomatoPHP\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 TomatoPHP](https://github.com/tomatophp/awesome)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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 ~1 days

Total

11

Last Release

687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (14 commits)")

---

Tags

filament-pluginfilamentphpfirebaseintegrationlaravelphplaravelfirebaseintegrationfilamentphpgoogle-firebasefilament-notifications

### Embed Badge

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

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

###  Alternatives

[tomatophp/filament-users

Manage your users with a highly customizable user resource for FilamentPHP with integration of filament-shield and filament-impersonate

90102.0k7](/packages/tomatophp-filament-users)[tomatophp/filament-accounts

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

748.3k7](/packages/tomatophp-filament-accounts)[tomatophp/filament-cms

Full CMS System with support of importing integrations and multi meta functions

11410.4k4](/packages/tomatophp-filament-cms)[tomatophp/filament-icons

Picker &amp; Table Column &amp; Icons Provider for FilamentPHP

3598.2k13](/packages/tomatophp-filament-icons)[usamamuneerchaudhary/filament-notifier

A powerful notification system for FilamentPHP that handles multi-channel notifications with template management, scheduling, and real-time delivery. Built for developers who need enterprise-grade notifications without the complexity.

321.1k](/packages/usamamuneerchaudhary-filament-notifier)[tomatophp/filament-types

Manage any type on your app in Database with easy to use Resource for FilamentPHP

5616.7k8](/packages/tomatophp-filament-types)

PHPackages © 2026

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