PHPackages                             anteris-dev/laravel-security-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. [Security](/categories/security)
4. /
5. anteris-dev/laravel-security-notifications

ActiveLibrary[Security](/categories/security)

anteris-dev/laravel-security-notifications
==========================================

Warn your users when significant security events occur so that they aren't the next victim of an attacker.

69[1 issues](https://github.com/Anteris-Dev/laravel-security-notifications/issues)PHP

Since Aug 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Anteris-Dev/laravel-security-notifications)[ Packagist](https://packagist.org/packages/anteris-dev/laravel-security-notifications)[ RSS](/packages/anteris-dev-laravel-security-notifications/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\[WIP\] Laravel Security Notifications
======================================

[](#wip-laravel-security-notifications)

[![Tests](https://github.com/Anteris-Dev/laravel-security-notifications/actions/workflows/tests.yaml/badge.svg)](https://github.com/Anteris-Dev/laravel-security-notifications/actions/workflows/tests.yaml)[![Style](https://github.com/Anteris-Dev/laravel-security-notifications/actions/workflows/style.yaml/badge.svg)](https://github.com/Anteris-Dev/laravel-security-notifications/actions/workflows/style.yaml)

This package adds security notifications to warn your users when significant security events occur so that they aren't the next victim of an attacker.

WarnsOfEmailChanges
-------------------

[](#warnsofemailchanges)

The `Anteris\LaravelSecurityNotifications\Concerns\WarnsOfEmailChanges` trait adds an `updatingEmail` event to your model and automatically sends a notification to the user when their email is changed. Note that the notification is sent to their previous email, not the updated one.

WarnsOfPasswordChanges
----------------------

[](#warnsofpasswordchanges)

The `Anteris\LaravelSecurityNotifications\Concerns\WarnsOfPasswordChanges` trait adds an `updatingPassword` event to your model and automatically sends a notification to the user when their password is changed. Note that if their email is changed at the same time, the notification is sent to their previous email, not the updated one, in case an attacker is attempting to change their email as well.

WarnsOfTwoFactorChanges
-----------------------

[](#warnsoftwofactorchanges)

The `Anteris\LaravelSecurityNotifications\Concerns\WarnsOfTwoFactorChanges` trait adds an `updatingTwoFactorSecret` event to your model and automatically sends a notification to the user when their two factor secret is changed. Note that if their email is changed at the same time, the notification is sent to their previous email, not the updated one, in case an attacker is attempting to change their email as well.

Configuring Attributes
----------------------

[](#configuring-attributes)

To configure the attributes used on the model to determine changes, publish the configuration file with the command:

```
php artisan vendor:publish --provider="Anteris\LaravelSecurityNotifications\LaravelSecurityNotificationsServiceProvider" --tag=config
```

Now open the file `config/laravel-security-notifications.php` and create a record for your model under the `models` array. For example:

```
return [
    'models' => [
        App\Models\User::class => [
            'email' => 'some_other_email_attribute',
            'password' => 'some_other_password_attribute',
            'two_factor_secret' => 'some_other_two_factor_attribute',
        ]
    ]
];
```

Configuring Emails
------------------

[](#configuring-emails)

To modify the emails sent to your users, publish the blade files by running:

```
php artisan vendor:publish --provider="Anteris\LaravelSecurityNotifications\LaravelSecurityNotificationsServiceProvider" --tag=views
```

This will place the blade files in `resources/views/vendor/laravelSecurityNotifications`.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dca3c3ac71024f7878526a0fe0a384fbf198ed711fe7e7bb34177a1dbc849f6?d=identicon)[golthem](/maintainers/golthem)

---

Top Contributors

[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (9 commits)")

### Embed Badge

![Health badge](/badges/anteris-dev-laravel-security-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/anteris-dev-laravel-security-notifications/health.svg)](https://phpackages.com/packages/anteris-dev-laravel-security-notifications)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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