PHPackages                             musahmusah/password-change-notification - 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. musahmusah/password-change-notification

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

musahmusah/password-change-notification
=======================================

A simple laravel package to send mail notification to the user when their password is changed.

1.0.2(3y ago)22[2 PRs](https://github.com/MusahMusah/password-change-notification/pulls)MITPHPPHP ^8.1

Since Dec 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MusahMusah/password-change-notification)[ Packagist](https://packagist.org/packages/musahmusah/password-change-notification)[ Docs](https://github.com/musahmusah/password-change-notification)[ RSS](/packages/musahmusah-password-change-notification/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

A simple laravel package to send mail notification to the user when their password is changed.
==============================================================================================

[](#a-simple-laravel-package-to-send-mail-notification-to-the-user-when-their-password-is-changed)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c96c023a83f5095cb0933c9a0fc72469d8fba114cc2fce6ec9ac2c5c3ece3e5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d757361686d757361682f70617373776f72642d6368616e67652d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/musahmusah/password-change-notification)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9dc0fb234ce646a50e14d4759946d2860072d67acc5a58cf26b67491f2388d49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d757361686d757361682f70617373776f72642d6368616e67652d6e6f74696669636174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/musahmusah/password-change-notification/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/def45516a42afb746c320339857be4ce789d355966e6df453cc21fe3859b22e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d757361686d757361682f70617373776f72642d6368616e67652d6e6f74696669636174696f6e2f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/musahmusah/password-change-notification/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e3ab3e87dbc17d1561a4fbe6282c67971e4be2752973035740e635be867eb6ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d757361686d757361682f70617373776f72642d6368616e67652d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/musahmusah/password-change-notification)

A simple package to send mail notification to the user when their password is changed.

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

[](#installation)

You can install the package via composer:

```
composer require musahmusah/password-change-notification
```

You can publish and run the migrations with:

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

You can publish the config file with:

```
php artisan vendor:publish --tag="password-change-notification-config"
```

This is the contents of the published config file:

```
return [
    'queue-notification-mail' => false,
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="password-change-notification-views"
```

Usage
-----

[](#usage)

After installing the package, you can go to your `User` model or any other model that has password and email fields and use `ObservePasswordChangeMail` trait and implement `PasswordChangedNotificationContract` interface

```
use MusahMusah\PasswordChangeNotification\Contracts\PasswordChangedNotificationContract;
use MusahMusah\PasswordChangeNotification\Traits\ObservePasswordChangeMail;

class User extends Authenticatable implements PasswordChangedNotificationContract
{
    use ObservePasswordChangeMail;
}
```

Now whenever you change the password of the user, a mail will be automatically sent to that user. Isn't that easy.

By default the package will assume the columns name to be `email` and `password`. But if you have different column name for those fields then you can modify those as well.

Let's say you have the `email` column as `user_email` in your `User` model or any other model, then you can add `emailColumnName` method on the `User` model and return `user_email` from here like so:

```
public function emailColumnName(): string
{
    return 'user_email';
}
```

You can also modify the `password` column by adding this method.

```
public function passwordColumnName(): string
{
    return 'user_password';
}
```

You can also modify the `name` column by adding this method. This will be used in the mail like Hi `Adam`.

```
public function nameColumnName(): string
{
    return 'full_name';
}
```

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)

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

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3

Last Release

1299d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51837314?v=4)[Musah Musah](/maintainers/MusahMusah)[@MusahMusah](https://github.com/MusahMusah)

---

Top Contributors

[![MusahMusah](https://avatars.githubusercontent.com/u/51837314?v=4)](https://github.com/MusahMusah "MusahMusah (10 commits)")

---

Tags

laravelMusahMusahpassword-change-notification

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/musahmusah-password-change-notification/health.svg)

```
[![Health](https://phpackages.com/badges/musahmusah-password-change-notification/health.svg)](https://phpackages.com/packages/musahmusah-password-change-notification)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M99](/packages/dedoc-scramble)[vormkracht10/laravel-mails

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

24857.5k](/packages/vormkracht10-laravel-mails)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k38](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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