PHPackages                             ctf0/firebase-broadcast-driver - 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. ctf0/firebase-broadcast-driver

AbandonedArchivedLibrary

ctf0/firebase-broadcast-driver
==============================

a firebase broadcast driver for laravel

v1.3.0(3y ago)73528MITPHP

Since Jul 26Pushed 1y agoCompare

[ Source](https://github.com/ctf0/laravel-firebase-broadcast-driver)[ Packagist](https://packagist.org/packages/ctf0/firebase-broadcast-driver)[ Docs](https://github.com/ctf0/laravel-firebase-broadcast-driver)[ GitHub Sponsors](https://github.com/sponsors/ctf0)[ RSS](/packages/ctf0-firebase-broadcast-driver/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

 FireBase Broadcast Driver
 [![Latest Stable Version](https://camo.githubusercontent.com/70c64788b8ba07e24ae87397fa26290007e93ac71404d7254bb20d48b9e97715/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637466302f66697265626173652d62726f6164636173742d6472697665722e737667)](https://packagist.org/packages/ctf0/firebase-broadcast-driver) [![Total Downloads](https://camo.githubusercontent.com/8e08b77be5fe112a31101a6ab446774eee83c534567c3ea2b3d48db71b1f4e3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637466302f66697265626173652d62726f6164636173742d6472697665722e737667)](https://packagist.org/packages/ctf0/firebase-broadcast-driver)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#----firebase-broadcast-driver---------)

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

[](#installation)

- `composer require ctf0/firebase-broadcast-driver`
- the package internally use [`kreait/firebase-php`](https://firebase-php.readthedocs.io/en/latest/) to send data to firebase.

### Config

[](#config)

```
// config/broadcasting

return [
    'connections' => [
        // ...

        'firebase' => [
            'driver'          => 'firebase',
            'type'            => 'firestore', // database, firestore or messaging
            'databaseURL'     => env('FB_DB_URL'), // the real time database url
            'creds_file'      => env('FB_CREDENTIALS_FILE'), // service account json file
            'collection_name' => env('FB_COLLECTION_NAME'), // ex.notifications
        ],
    ],
];
```

### Usage

[](#usage)

- add `BROADCAST_DRIVER=firebase` to `.env`
- atm there no support for [laravel-echo](https://laravel.com/docs/5.8/broadcasting#installing-laravel-echo) "any help is appreciated" but no worries, you still get the same payload as other broadcast drivers.

    however you can check the [firebase api docs](https://firebase.google.com/docs/database/web/start) or [vuefire](https://github.com/vuejs/vuefire) if you are using `vue`, on how to listen for changes and update your app users accordingly.

#### Notification Data Sample

[](#notification-data-sample)

```
{
    "notifications" : {
        "-LkgtAVVw0Ztwyjayd9n" : {
            "channel" : "private-App.User.091b0f7e-805b-4aab-8c99-445039157783",
            "data" : {
                "body" : "some body",
                "id" : "d54c44a2-8a42-43a4-bae0-e2b159d1533b",
                "title" : "some title",
                "type" : "App\\Notifications\\AlertUser"
            },
            "event" : "Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",
            "timestamp": 1564183089538
        }
    }
}
```

### Security

[](#security)

If you discover any security-related issues, please email .

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~126 days

Recently: every ~258 days

Total

11

Last Release

1219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51dbfff65441e32301575f8ac241895817975e754d15574b86f543b33f1961f6?d=identicon)[ctf0](/maintainers/ctf0)

---

Top Contributors

[![ctf0](https://avatars.githubusercontent.com/u/7388088?v=4)](https://github.com/ctf0 "ctf0 (24 commits)")[![MartijnDB](https://avatars.githubusercontent.com/u/47593731?v=4)](https://github.com/MartijnDB "MartijnDB (1 commits)")[![zeknoss](https://avatars.githubusercontent.com/u/2834599?v=4)](https://github.com/zeknoss "zeknoss (1 commits)")

---

Tags

laravelfirebaseBroadcastctf0

### Embed Badge

![Health badge](/badges/ctf0-firebase-broadcast-driver/health.svg)

```
[![Health](https://phpackages.com/badges/ctf0-firebase-broadcast-driver/health.svg)](https://phpackages.com/packages/ctf0-firebase-broadcast-driver)
```

###  Alternatives

[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[mpociot/laravel-firebase-sync

Synchronize your Eloquent models with a Firebase realtime database.

267152.9k1](/packages/mpociot-laravel-firebase-sync)[vinkas/firebase-auth-laravel

Firebase Authentication package for Laravel PHP Framework

392.1k](/packages/vinkas-firebase-auth-laravel)

PHPackages © 2026

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