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 yesterday

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 41% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

696d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[redjanym/php-firebase-cloud-messaging

PHP SDK for Firebase Cloud Messaging from Google

37864.6k2](/packages/redjanym-php-firebase-cloud-messaging)

PHPackages © 2026

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