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

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

orlyapps/laravel-firebase-notifications
=======================================

Sending Push Notifications via Firebase with API/Database Integration

3.0(4y ago)0322[1 PRs](https://github.com/orlyapps/laravel-firebase-notifications/pulls)MITPHPPHP ^8.0

Since Sep 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/orlyapps/laravel-firebase-notifications)[ Packagist](https://packagist.org/packages/orlyapps/laravel-firebase-notifications)[ Docs](https://github.com/orlyapps/laravel-firebase-notifications)[ RSS](/packages/orlyapps-laravel-firebase-notifications/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Sending Push Notifications via Firebase with API/Database Integration
=====================================================================

[](#sending-push-notifications-via-firebase-with-apidatabase-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bec7b6c0235f8aa5d51c4d1da7ea488a26432b8daef29fa20f517a25fe790e47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f726c79617070732f6c61726176656c2d66697265626173652d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orlyapps/laravel-firebase-notifications)[![Quality Score](https://camo.githubusercontent.com/e8023522e64debf0a1f711d1ea3360b77f9eed00e1252300c8b070473fd42dca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f726c79617070732f6c61726176656c2d66697265626173652d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/orlyapps/laravel-firebase-notifications)[![Total Downloads](https://camo.githubusercontent.com/63e29fc5d62cbb66f2854004a0b6150a58bbb632f380b5bc0fa4b2e61b90b711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f726c79617070732f6c61726176656c2d66697265626173652d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orlyapps/laravel-firebase-notifications)

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

[](#installation)

You can install the package via composer:

```
composer require orlyapps/laravel-firebase-notifications
php artisan migrate
```

### To generate a private key file for your service account:

[](#to-generate-a-private-key-file-for-your-service-account)

1. In the Firebase console, open Settings&gt; Service Accounts (Dienstkonten) .
2. Click Generate New Private Key and confirm by clicking Generate Key.
3. Save the JSON file with the key securely.

```
// User.php
class User extends Authenticatable
{
    use Notifiable, HasPushTokens;
}

// services.php
'fcm' => [
    'json_file_path' => storage_path('xxxxx-annxd-xxxx.json'),
]

// api.php
LaravelFirebaseNotifications::routes();
```

Usage
-----

[](#usage)

```
fetch("http://laravel.test/api/push-token", {
    headers: {
        accept: "application/json, text/plain, */*",
        authorization:
            "Bearer 25|Zy2O22cipiT1wQWWJ5Dxdp9h2dPKEBNscHkViRa1F7LPIaFMHjr3yR4Q6YVCp6hIRrhcavNGfHcO7EJ6",
        "content-type": "application/json",
    },
    body:
        '{"token":"f60Yy793HIWGJAti0PdQKh:APA91bGMhHeCdJLUoleisatgB931pepFq_PJp3smQvXY8ENEDiK9ldL5HhsIQ-4bCaoyd3lxndRjueWcrLhLDccCQ05_objqt4-V9HGceK0xgBsiyGG4atu8xMAi7vnclcAvIZ7G9wB_","type":"web"}',
    method: "POST",
    mode: "cors",
    credentials: "include",
});
```

```
 \App\User::find(1)->notify(new TextNotification('test', 'body', 'https://orlyapps.de'));
```

Usage Angular App
-----------------

[](#usage-angular-app)

```
npm install firebase @angular/fire -save

```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Orlyapps](https://github.com/orlyapps)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~186 days

Total

4

Last Release

1519d ago

Major Versions

1.0.0 → 2.02020-09-21

2.0.1 → 3.02022-03-15

PHP version history (2 changes)1.0.0PHP ^7.4

3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/151910418d1ae1eb29a6bbeb788ea67c1ee0c77a1c02a2a437372a52da5739c4?d=identicon)[orlyapps](/maintainers/orlyapps)

---

Top Contributors

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

---

Tags

orlyappslaravel-firebase-notifications

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/orlyapps-laravel-firebase-notifications/health.svg)](https://phpackages.com/packages/orlyapps-laravel-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)
