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

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

usamatoor/firebase-notifications
================================

Laravel Firebase Notifications package using OAuth2 (Google) with cURL.

v1.0.0(10mo ago)04MITPHPPHP ^8.1

Since Jun 24Pushed 10mo agoCompare

[ Source](https://github.com/usamatoor1993/firebase-notifications)[ Packagist](https://packagist.org/packages/usamatoor/firebase-notifications)[ RSS](/packages/usamatoor-firebase-notifications/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

📚 Full Documentation
--------------------

[](#-full-documentation)

🔥 Laravel Firebase Notifications (OAuth2)
=========================================

[](#-laravel-firebase-notifications-oauth2)

 **Send Firebase Cloud Messaging (FCM) notifications securely using OAuth2 in Laravel.**

---

📦 Installation
--------------

[](#-installation)

```
composer require usamatoor/firebase-notifications
```

### If you're developing locally:

[](#if-youre-developing-locally)

```

"repositories": [
  {
    "type": "path",
    "url": "packages/Usama/firebase-notifications"
  }
]

```

Then run:

```
composer require usamatoor/firebase-notifications:dev-main
```

---

🔧 Configuration
---------------

[](#-configuration)

Add the following to your `.env` file:

```

FIREBASE_CLIENT_ID=your-client-id
FIREBASE_CLIENT_SECRET=your-client-secret
FIREBASE_REFRESH_TOKEN=your-refresh-token
FIREBASE_PROJECT_ID=your-project-id

```

---

🚀 Usage
-------

[](#-usage)

```

use Usama\FirebaseNotifications\FirebaseNotifications;

$firebase = new FirebaseNotifications();

$firebase->send(
    $firebaseToken,
    'Welcome!',
    'Thank you for signing up.',
    ['data' => ['custom' => 'payload']]
);

```

---

📘 Documentation
---------------

[](#-documentation)

- Full guide available in the `/docs` directory.
- Includes advanced usage, exception handling, and token refresh logic.

---

🙌 Contributing
--------------

[](#-contributing)

Pull requests are welcome! For major changes, please open an issue first.

---

- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- [Usage](docs/usage.md)
- [Exceptions](docs/exceptions.md)
- [Advanced Features](docs/advanced.md)
- [Contributing](docs/contributing.md)

**Created with ❤️ by Usama Toor**

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

320d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

fcmfcm-notificationsfirebasefirebase-cloud-messagingfirebase-notificationslaravellaravel-packagenotificationsoauth2phpphp-packagepush-notificationsreal-time

### Embed Badge

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

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

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[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/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[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)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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