PHPackages                             yacinediaf/laravel-notifyme - 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. yacinediaf/laravel-notifyme

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

yacinediaf/laravel-notifyme
===========================

This is my package laravel-notifyme

v1.0.4(11mo ago)25MITPHPPHP ^8.2CI passing

Since May 30Pushed 11mo agoCompare

[ Source](https://github.com/yacinediaf/notifyme)[ Packagist](https://packagist.org/packages/yacinediaf/laravel-notifyme)[ Docs](https://github.com/yacinediaf/laravel-notifyme)[ GitHub Sponsors]()[ RSS](/packages/yacinediaf-laravel-notifyme/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

Laravel-notifyme
================

[](#laravel-notifyme)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cf4504ebab04e01c800bdb71e6aebff09cc98d810c08d16a3357229df6f6e1cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796163696e65646961662f6c61726176656c2d6e6f746966796d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yacinediaf/laravel-notifyme)[![GitHub Tests Action Status](https://camo.githubusercontent.com/823caca6dff0c0a11ce2ba34998496ed836edc83c1f435617dba7696b1a6a119/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796163696e65646961662f6c61726176656c2d6e6f746966796d652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/yacinediaf/laravel-notifyme/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d947474b9321f473593ab4c397a323cf0862f7ab3972a4482c71eb709c91eea4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796163696e65646961662f6c61726176656c2d6e6f746966796d652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/yacinediaf/laravel-notifyme/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/75bff133eacca17a5596e215234ec969d7097119c22327c15a641c26e036f7e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796163696e65646961662f6c61726176656c2d6e6f746966796d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yacinediaf/laravel-notifyme)

This package allows you to notify your users through the firebase cloud messaging technique in order to notify them using there device notification on both IOS or ANDROID with ease.

Before start working with this package it is recommended to read the following article to know how things works under the hood. [Notify me! Using Laravel and FCM.](https://medium.com/@yacine.superieut/notify-me-using-laravel-and-fcm-fd5d3caccaaa)

Requirements
------------

[](#requirements)

You need to have laravel sanctum installed. if you don't installed it yet do it using the following command

```
composer require laravel/sanctum
```

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

[](#installation)

1. You can install the package via composer:

```
composer require yacinediaf/laravel-notifyme
```

2. You can publish and run the migrations with:

```
php artisan vendor:publish --tag="migrations"
php artisan migrate
```

> Don't forget to add the **hasDevice** trait to your User model

3. Add the FIREBASE\_CREDENTIALS to your **.env** file you can read the following article in order to know where to get this file. [Notify me! Using Laravel and FCM.](https://medium.com/@yacine.superieut/notify-me-using-laravel-and-fcm-fd5d3caccaaa)

```
    FIREBASE_CREDENTIALS=storage/app/private/googleaccountservice.json
```

Usage
-----

[](#usage)

1. Make sure the current user is authenticated.
2. Generate the FCM token on the client side from your mobile client (IOS, ADNROID) by installing firebase package compatible with the language you're using for example **Flutter**.
3. Save the generated FCM token for the current user with the current device by **Posting** to this endpoint **/api/save\_device\_token**
4. You need to include in the body parameter of the request the following data:

```
    [
            'user_id' => ['required', 'exists:users,id'],
            'device_token' => ['required', 'string'],
            'device_info' => ['required', 'string'], //Iphone 15 pro max
    ];
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Yacine Diaf](https://github.com/yacinediaf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance51

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

5

Last Release

347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eea0c84ddbd5f3dac29613397b397971801c939533cd62d8d3ba9dcbf56b83f?d=identicon)[yacinediaf](/maintainers/yacinediaf)

---

Top Contributors

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

---

Tags

laravelYacine Diaflaravel-notifyme

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yacinediaf-laravel-notifyme/health.svg)

```
[![Health](https://phpackages.com/badges/yacinediaf-laravel-notifyme/health.svg)](https://phpackages.com/packages/yacinediaf-laravel-notifyme)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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