PHPackages                             hshafiei374/password-validator - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. hshafiei374/password-validator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

hshafiei374/password-validator
==============================

Laravel password validator package

v1.0.0(4y ago)15MITPHPPHP ^7.2|^7.4|^8.0

Since Feb 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zhitoo/password-validator)[ Packagist](https://packagist.org/packages/hshafiei374/password-validator)[ RSS](/packages/hshafiei374-password-validator/feed)WikiDiscussions main Synced yesterday

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

password-validator
==================

[](#password-validator)

password validator tools for laravel

```
composer require hshafiei374/password-validator

```

- have\_strength
- have\_uppercase
- have\_lowercase
- have\_number
- have\_symbol

have\_strength
--------------

[](#have_strength)

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength:2'
        ]);

```

we can set have\_strength from 1 to 5 and by default set on 5

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength'//set on 5
        ]);

```

- base\_rule: password must at least has {number} chars default: number=6
- rule 1 and at least has one a-z chars or lowercase
- rule 2 and at least has one A-Z or lowercase-uppercase
- rule 3 and at least has one 0-9 or lowercase-uppercase-number
- rule 4 and at least has one special chars like @ $ ! % \* # ? &amp; or lowercase-uppercase-number-symbol

by default password length is 6 but you can change it.

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength:,8'//password length at least 8
        ]);

```

set both strong and password chars length

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength:4,8'//first is strong and second is password length
        ]);

```

### if you want use only special characters or only uppercase ...

[](#if-you-want-use-only-special-characters-or-only-uppercase-)

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength:uppercase,8'//first is strong and second is password length
        ]);

```

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_strength:symbol-uppercase,8'//first is strong and second is password length
        ]);

```

### you can use each rule separately:

[](#you-can-use-each-rule-separately)

have\_number
------------

[](#have_number)

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_number:3'//password must have 3 numeric characters
        ]);

```

\##have\_symbol

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_symbol'//password must have 1 special character
        ]);

```

have\_uppercase
---------------

[](#have_uppercase)

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_uppercase'//password must have 1 uppercase character
        ]);

```

\##have\_lowercase

```
$validateInputs = $request->validate([
            'email' => 'required|email|unique:users,email',
            'name' => 'required|string',
            'password' => 'required|confirmed|min:6|have_lowercase:2'//password must have 2 lowercase character
        ]);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1542d ago

### Community

Maintainers

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

---

Top Contributors

[![zhitoo](https://avatars.githubusercontent.com/u/20835893?v=4)](https://github.com/zhitoo "zhitoo (12 commits)")

### Embed Badge

![Health badge](/badges/hshafiei374-password-validator/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[olssonm/l5-very-basic-auth

Laravel stateless HTTP basic auth without the need for a database

1662.5M1](/packages/olssonm-l5-very-basic-auth)[stechstudio/laravel-jwt

Helper package that makes it easy to generate, consume, and protect routes with JWT tokens in Laravel

126117.6k](/packages/stechstudio-laravel-jwt)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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