PHPackages                             chatsikm/firebase-broadcast-driver-demo - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chatsikm/firebase-broadcast-driver-demo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chatsikm/firebase-broadcast-driver-demo
=======================================

a firebase broadcast driver demo for laravel

08PHP

Since Dec 5Pushed 3y agoCompare

[ Source](https://github.com/chatsikm/laravel-firebase-broadcast-driver-demo)[ Packagist](https://packagist.org/packages/chatsikm/firebase-broadcast-driver-demo)[ RSS](/packages/chatsikm-firebase-broadcast-driver-demo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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 or firestore
            '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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/061498024e0b67bf35b3b9adbcea199a23f7f46c363aa2bd773caa3c4959fd09?d=identicon)[chatsikm](/maintainers/chatsikm)

---

Top Contributors

[![ctf0](https://avatars.githubusercontent.com/u/7388088?v=4)](https://github.com/ctf0 "ctf0 (23 commits)")[![stephenfrank](https://avatars.githubusercontent.com/u/112059?v=4)](https://github.com/stephenfrank "stephenfrank (3 commits)")[![chatsikm](https://avatars.githubusercontent.com/u/77117763?v=4)](https://github.com/chatsikm "chatsikm (1 commits)")[![MartijnDB](https://avatars.githubusercontent.com/u/47593731?v=4)](https://github.com/MartijnDB "MartijnDB (1 commits)")

### Embed Badge

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

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

###  Alternatives

[pragmarx/support

PragmaRX components support package

591.5M27](/packages/pragmarx-support)[bcremer/line-reader

Read large files line by line in a memory efficient (constant) way.

301.6M4](/packages/bcremer-line-reader)[beelab/recaptcha2-bundle

Provide Google Recaptcha2 form type

55455.1k1](/packages/beelab-recaptcha2-bundle)[lkrms/pretty-php

The opinionated PHP code formatter

14659.1k1](/packages/lkrms-pretty-php)[kreyu/data-table-bundle

Streamlines creation process of the data tables

11299.6k](/packages/kreyu-data-table-bundle)[adhocore/cron-expr

Ultra lightweight Cron Expression parser for PHP

53436.1k3](/packages/adhocore-cron-expr)

PHPackages © 2026

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