PHPackages                             draganus/laravel-notification-preferences - 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. draganus/laravel-notification-preferences

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

draganus/laravel-notification-preferences
=========================================

Users can: Enable/disable notifications for email address, push notifications, SMS, slack..

0.0.1(4y ago)45MITPHPPHP ^8.0

Since Dec 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DraganUS/laravel-notification-preferences)[ Packagist](https://packagist.org/packages/draganus/laravel-notification-preferences)[ Docs](https://github.com/draganus/laravel-notification-preferences)[ GitHub Sponsors](https://github.com/draganus)[ RSS](/packages/draganus-laravel-notification-preferences/feed)WikiDiscussions main Synced 3w ago

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

Users can: Enable/disable notifications for email address, push notifications, SMS, slack..
===========================================================================================

[](#users-can-enabledisable-notifications-for-email-address-push-notifications-sms-slack)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a2ec25b16f8658c9972f9646133747ca160a91f5a27288a65827133a9166d8e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64726167616e75732f6c61726176656c2d6e6f74696669636174696f6e2d707265666572656e6365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/draganus/laravel-notification-preferences)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ee966121023e8ec0d10dd2dc6d235aac65db64b5d9b476bb078d082ee25cd437/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64726167616e75732f6c61726176656c2d6e6f74696669636174696f6e2d707265666572656e6365732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/draganus/laravel-notification-preferences/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f6365b07dc1e7b15219ff50bd8346ead1651abcb0a36f76c7e2785f69e79a856/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64726167616e75732f6c61726176656c2d6e6f74696669636174696f6e2d707265666572656e6365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/draganus/laravel-notification-preferences)

---

Support me
----------

[](#support-me)

[You can bye me a coffee ☕️](https://www.buymeacoffee.com/draganUS).

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

[](#installation)

You can install the package via composer:

```
composer require draganus/laravel-notification-preferences
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="draganus\LaravelNotificationPreferences\LaravelNotificationPreferencesServiceProvider"
php artisan migrate
```

This is the contents of the published config file:

```
return [
    /*
     * Set the defoult notification's delivery channels
     */
    "notify_channels" => ['mail', 'database']
];
```

Usage
-----

[](#usage)

in your Notification class replace via method

```
public function via($notifiable)
{
    $notificationPreference = new NotificationPreference();
    return $notificationPreference->check($notifiable, self::class);
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Dragan Usic](https://github.com/draganus)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/984717493358962c58d4cee36212217eaa821a14bcf68f0a1047bd30d44a45a8?d=identicon)[DraganUS](/maintainers/DraganUS)

---

Top Contributors

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

---

Tags

laraveldraganuslaravel-notification-preferences

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/draganus-laravel-notification-preferences/health.svg)

```
[![Health](https://phpackages.com/badges/draganus-laravel-notification-preferences/health.svg)](https://phpackages.com/packages/draganus-laravel-notification-preferences)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[vormkracht10/laravel-mails

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

24855.3k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

483519.8k1](/packages/xammie-mailbook)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[backstage/laravel-mails

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

24875.5k8](/packages/backstage-laravel-mails)

PHPackages © 2026

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