PHPackages                             asdh/password-changed-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. asdh/password-changed-notification

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

asdh/password-changed-notification
==================================

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

2.1(4y ago)261912[3 PRs](https://github.com/Laratipsofficial/password-changed-notification/pulls)MITPHPPHP ^8.0|^8.1

Since Dec 17Pushed 2y ago4 watchersCompare

[ Source](https://github.com/Laratipsofficial/password-changed-notification)[ Packagist](https://packagist.org/packages/asdh/password-changed-notification)[ Docs](https://github.com/asdh/password-changed-notification)[ GitHub Sponsors](https://github.com/Asdh)[ RSS](/packages/asdh-password-changed-notification/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (11)Versions (10)Used By (0)

Password Changed Notification
=============================

[](#password-changed-notification)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3264835c033dcb5d4fae7965b99f372d0420c7fcac1b41fe185d43e89f258b55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617364682f70617373776f72642d6368616e6765642d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asdh/password-changed-notification)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a4e816f90b905a92e5a9e0010da47f32fb4b3197d37df2aad435f09ae7f49810/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617364682f70617373776f72642d6368616e6765642d6e6f74696669636174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/asdh/password-changed-notification/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/563038687a4a5fbea3eb78ae2e2d27acbcfccc30429890421d09b7ecfe1b3cab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617364682f70617373776f72642d6368616e6765642d6e6f74696669636174696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/asdh/password-changed-notification/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0d0fc5b4a900df4dbfd492b18080583d75c0c71c0889b82a2eff496661d7a4e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617364682f70617373776f72642d6368616e6765642d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asdh/password-changed-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 asdh/password-changed-notification
```

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 `PasswordChangedNotificationTrait` trait and implement `PasswordChangedNotificationContract` interface

```
use Asdh\PasswordChangedNotification\Contracts\PasswordChangedNotificationContract;
use Asdh\PasswordChangedNotification\Traits\PasswordChangedNotificationTrait;

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

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';
}
```

Further, if you want to modify the mail that is being sent to the user, you can publish the mail view using

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

The views view will now be published in `resources/views/vendor/password-changed-notification/emails/password-changed-notification.blade.php`. You can modify this file as per your need and when mail is sent to the user, it will be used.

You can also create your own mailable (the one that you create using `php artisan make:mail` command) and use that instead. For that you need to return the mailable that you have created by adding `passwordChangedNotificationMail` method on the `User` model and returning the mailable.

```
public function passwordChangedNotificationMail(): Mailable
{
    return new YourOwnPasswordChangedNotificationMail($this);
}
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~16 days

Total

6

Last Release

1575d ago

Major Versions

1.0.3 → 2.02022-02-09

PHP version history (2 changes)1.0.0PHP ^8.0

2.1PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9fec3e923a4df02c2274abecce09f9d9f26e50d043041d42827527269cb3de6?d=identicon)[asdh](/maintainers/asdh)

---

Top Contributors

[![Laratipsofficial](https://avatars.githubusercontent.com/u/72372072?v=4)](https://github.com/Laratipsofficial "Laratipsofficial (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")

---

Tags

laravelphplaravelasdhpassword-changed-notification

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/asdh-password-changed-notification/health.svg)

```
[![Health](https://phpackages.com/badges/asdh-password-changed-notification/health.svg)](https://phpackages.com/packages/asdh-password-changed-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.2M100](/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)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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