PHPackages                             ahmedeid46/firebase - 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. ahmedeid46/firebase

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

ahmedeid46/firebase
===================

This package provides an easy-to-use interface for integrating Firebase Cloud Messaging (FCM) notifications into your Laravel application. Developed by Ahmed Eid, CEO of Plan A, it simplifies sending push notifications to iOS and Android devices.

v1.0.0(1y ago)091MITPHPPHP ^8.1

Since Aug 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ahmedeidalhayat/firebase)[ Packagist](https://packagist.org/packages/ahmedeid46/firebase)[ RSS](/packages/ahmedeid46-firebase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Firebase FCM Notification Package
=================================

[](#firebase-fcm-notification-package)

This package provides an easy-to-use interface for integrating Firebase Cloud Messaging (FCM) notifications into your Laravel application. Developed by Ahmed Eid, CEO of Plan A, it simplifies sending push notifications to iOS and Android devices.

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

[](#installation)

You can install the package via Composer:

```
composer require ahmedeid46/firebase
```

Configuration
=============

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Ahmedeid46\Firebase\NotificationServiceProvider"
```

Add your Firebase project credentials to your .env file:

```
FIREBASE_PROJECT=your_firebase_project_id
FIREBASE_CREDENTIALS_PATH=/path/to/your/firebase/credentials.json
```

Usage
=====

[](#usage)

Here is an example of how to use the package in your Laravel application:

Step 1: Use the Notification Class Use the Notification class to set tokens, message, and title, then send the notification:

```
use Ahmedeid46\Firebase\Notification;

// Resolve the Notification instance from the container
$notification = app(Notification::class);

// Use fluent interface to set properties and send the notification
$response = $notification
->setTokens(['device-token-1', 'device-token-2'])
->setTitle('Test Notification')
->setMessage('This is a test message')
->send();

// Output the response
dd($response);
```

Fluent Interface
================

[](#fluent-interface)

The `Notification` class supports a fluent interface, allowing you to chain method calls:

setTokens(array $tokens): Set the device tokens to which the notification will be sent.

setMessage(string $message): Set the message body of the notification.

setTitle(string $title): Set the title of the notification.

send(): Send the notification and return the response from the FCM API.

Configuration File
==================

[](#configuration-file)

The published configuration file can be found at config/notification.php. You can adjust the configuration settings according to your needs.

License
=======

[](#license)

This package is licensed under the MIT License. See the LICENSE file for more information.

Support
=======

[](#support)

For any issues or feature requests, please open an issue on the GitHub repository.

Author
======

[](#author)

This package is developed by Ahmed Eid, CEO of Plan A.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a088675872fb8e540bd1e65dedae729d3ef3d5fe20dfe15fc5806231d431afd6?d=identicon)[ahmedeid46](/maintainers/ahmedeid46)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ahmedeid46-firebase/health.svg)

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

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[pusher/pusher-push-notifications

562.5M9](/packages/pusher-pusher-push-notifications)

PHPackages © 2026

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