PHPackages                             zenepay/password-policy - 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. zenepay/password-policy

ActiveLibrary

zenepay/password-policy
=======================

Configurable password history and expiry policies for Laravel applications.

1.0.0(yesterday)01↑2900%MITPHPPHP &gt;=8.3

Since Aug 24Pushed yesterdayCompare

[ Source](https://github.com/zenepay/password-policy)[ Packagist](https://packagist.org/packages/zenepay/password-policy)[ RSS](/packages/zenepay-password-policy/feed)WikiDiscussions main Synced today

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

Zenepay Password Policy
=======================

[](#zenepay-password-policy)

Configurable password history and expiry policies for Laravel applications.

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

[](#installation)

```
composer require zenepay/password-policy
php artisan vendor:publish --tag=password-policy-config
php artisan vendor:publish --tag=password-policy-migrations
php artisan migrate
```

User model
----------

[](#user-model)

Add the trait to the authenticatable model:

```
use Zenepay\PasswordPolicy\Traits\PasswordExpirable;

class User extends Authenticatable
{
    use PasswordExpirable;
}
```

The package records the initial password and subsequent password changes. Password reuse checks the most recent number of hashes configured by `previous_passwords_limit`.

Validation
----------

[](#validation)

```
use Zenepay\PasswordPolicy\Rules\NoPreviousPassword;

'password' => [
    'required',
    'confirmed',
    NoPreviousPassword::ofUser($request->user()),
],
```

Middleware
----------

[](#middleware)

Register the middleware in the host application and configure `middleware_redirect_route` to a route that displays the password renewal form:

```
'check-password-expired' => Zenepay\PasswordPolicy\Middleware\CheckPasswordExpired::class,
```

Expiry notifications
--------------------

[](#expiry-notifications)

Run the command manually or schedule it in the host application:

```
php artisan password-policy:check-expiry
```

The command is intentionally not scheduled automatically. Configure the password broker and reset route in `config/password-policy.php` before enabling it.

Configuration
-------------

[](#configuration)

The package publishes `config/password-policy.php`. Important defaults include 90 expiry days and a five-password history limit.

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/514bdcdca020d9c3e9e50dc74ab9ad7f79283be106fb52f7adfd5595a4faba0d?d=identicon)[zenepay](/maintainers/zenepay)

---

Top Contributors

[![zenepay](https://avatars.githubusercontent.com/u/1179823?v=4)](https://github.com/zenepay "zenepay (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/zenepay-password-policy/health.svg)

```
[![Health](https://phpackages.com/badges/zenepay-password-policy/health.svg)](https://phpackages.com/packages/zenepay-password-policy)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k31.8M163](/packages/laravel-cashier)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M337](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

88412.7M190](/packages/spatie-laravel-health)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)

PHPackages © 2026

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