承接 shibly/password-notify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shibly/password-notify

最新稳定版本:v1.0.3

Composer 安装命令:

composer require shibly/password-notify

包简介

Laravel package to notify user of password changes.

README 文档

README

Latest Version PHP Version Laravel Version

This Laravel package automatically sends a notification to users when their password is changed. It does not store or email the new password.

Installation

You can easily install this package via Composer:

composer require shibly/password-notify

Publish Configuration (Optional)

Publish the configuration file to customize package behavior:

php artisan vendor:publish --tag=config

This will publish passwordnotify.php into your application's config directory.

Configuration

Modify config/passwordnotify.php to define the password field:

return [
    'password_field' => 'password',
];

You can customize this field if your application uses a different naming convention.

Usage

When changing a user's password, the notification will automatically be sent if the configured password field changes:

use Illuminate\Support\Facades\Hash;

$user = auth()->user();
$user->update([
    'password' => Hash::make('MySecurePassword123'),
]);

You don't need to do anything else. The package listens for password changes and sends a notification automatically.

Example Email Notification

The user will receive a notification similar to:

Hello, John Doe!

Your password has been successfully changed.

If you did not change your password, please contact support immediately.

Queueing Notifications (Recommended)

By default, notifications will be queued. Ensure your Laravel queue worker is running:

php artisan queue:work

Requirements

  • PHP ^8.1
  • Laravel ^11.0|^12.0

Contributing

Feel free to submit issues or pull requests to improve this package!

License

This package is open-source and licensed under the [MIT license].

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-10