PHPackages                             rollerworks/password-strength-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. rollerworks/password-strength-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

rollerworks/password-strength-validator
=======================================

Password-strength validator for Symfony

v3.0.0(5mo ago)1455.7M—0.8%325MITPHPPHP &gt;=8.4CI failing

Since Aug 19Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/rollerworks/PasswordStrengthValidator)[ Packagist](https://packagist.org/packages/rollerworks/password-strength-validator)[ RSS](/packages/rollerworks-password-strength-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (51)Used By (5)

Rollerworks PasswordStrengthValidator
=====================================

[](#rollerworks-passwordstrengthvalidator)

This package provides various password strength validators for the [Symfony Validator component](http://symfony.com/doc/current/components/validator.html).

*To use this bundle with a Symfony application use the [RollerworksPasswordStrengthBundle](https://github.com/rollerworks/PasswordStrengthBundle).*

Passwords can be validated using either strength-levels (weak, medium, strong etc) or by configuring explicit requirements (needs letters, numbers etc).

> This library provides the same level of functionality as the [PasswordStrengthBundle](https://github.com/jbafford/PasswordStrengthBundle) created by John Bafford.

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

[](#installation)

To install this package, add `rollerworks/password-strength-validator` to your composer.json:

```
$ php composer.phar require rollerworks/password-strength-validator
```

Now, [Composer](https://getcomposer.org/doc/00-intro.md) will automatically download all required files, and install them for you.

Requirements
------------

[](#requirements)

You need at least PHP 8.4 and Symfony 7.4, mbstring is recommended but not required.

Basic Usage
-----------

[](#basic-usage)

**Caution:**

> The password validators do not enforce that the field must have a value! To make a field "required" use the [NotBlank constraint](http://symfony.com/doc/current/reference/constraints/NotBlank.html)in combination with the password validator(s).

All examples assume you have the Composer autoloader already in your code, see also [How to Install and Use the Symfony Components](http://symfony.com/doc/current/components/using_components.html)for more information.

### [Strength validation](docs/strength-validation.md)

[](#strength-validation)

Validates the passwords strength-level (weak, medium, strong etc).

### [Requirements validation](docs/requirements-validation.md)

[](#requirements-validation)

Validates the passwords using explicitly configured requirements (letters, caseDiff, numbers, requireSpecialCharacter).

Versioning
----------

[](#versioning)

For transparency and insight into the release cycle, and for striving to maintain backward compatibility, this package is maintained under the Semantic Versioning guidelines as much as possible.

Releases will be numbered with the following format:

`..`

And constructed with the following guidelines:

- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bumps the patch

For more information on SemVer, please visit .

License
-------

[](#license)

This library is released under the [MIT license](LICENSE).

Contributing
------------

[](#contributing)

This is an open source project. If you'd like to contribute, please read the [Contributing Guidelines](https://github.com/rollerworks/contributing). If you're submitting a pull request, please follow the guidelines in the [Submitting a Patch](https://contributing.readthedocs.org/en/latest/code/patches.html) section.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance79

Regular maintenance activity

Popularity61

Solid adoption and visibility

Community34

Small or concentrated contributor base

Maturity94

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 79.1% 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 ~63 days

Recently: every ~22 days

Total

50

Last Release

81d ago

Major Versions

v1.7.3 → v2.0.0-BETA12023-10-28

v2.0.3 → v3.0.0-BETA12025-11-28

PHP version history (7 changes)v1.0.0-BETA1PHP ^5.6 || ^7.0

v1.2.0PHP ^7.1

v1.3.2PHP &gt;=7.1

v1.5.0PHP &gt;=7.3

v2.0.0-BETA1PHP &gt;=8.2

v3.0.0-BETA1PHP &gt;=8.4

v2.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (261 commits)")[![vkhramtsov](https://avatars.githubusercontent.com/u/5517373?v=4)](https://github.com/vkhramtsov "vkhramtsov (10 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (9 commits)")[![nedac-sorbo](https://avatars.githubusercontent.com/u/46560227?v=4)](https://github.com/nedac-sorbo "nedac-sorbo (8 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (6 commits)")[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (3 commits)")[![yguedidi](https://avatars.githubusercontent.com/u/1480128?v=4)](https://github.com/yguedidi "yguedidi (3 commits)")[![hlecorche](https://avatars.githubusercontent.com/u/188749?v=4)](https://github.com/hlecorche "hlecorche (3 commits)")[![4c0n](https://avatars.githubusercontent.com/u/2325383?v=4)](https://github.com/4c0n "4c0n (2 commits)")[![bobvandevijver](https://avatars.githubusercontent.com/u/1835343?v=4)](https://github.com/bobvandevijver "bobvandevijver (2 commits)")[![dakujem](https://avatars.githubusercontent.com/u/443067?v=4)](https://github.com/dakujem "dakujem (2 commits)")[![gnat42](https://avatars.githubusercontent.com/u/325591?v=4)](https://github.com/gnat42 "gnat42 (2 commits)")[![VincentLanglet](https://avatars.githubusercontent.com/u/9052536?v=4)](https://github.com/VincentLanglet "VincentLanglet (2 commits)")[![jkabat](https://avatars.githubusercontent.com/u/6071927?v=4)](https://github.com/jkabat "jkabat (1 commits)")[![liverbool](https://avatars.githubusercontent.com/u/206804?v=4)](https://github.com/liverbool "liverbool (1 commits)")[![mennowame](https://avatars.githubusercontent.com/u/10498358?v=4)](https://github.com/mennowame "mennowame (1 commits)")[![Mopster](https://avatars.githubusercontent.com/u/155956?v=4)](https://github.com/Mopster "Mopster (1 commits)")[![jacobmaster](https://avatars.githubusercontent.com/u/696980?v=4)](https://github.com/jacobmaster "jacobmaster (1 commits)")[![philrennie](https://avatars.githubusercontent.com/u/24852?v=4)](https://github.com/philrennie "philrennie (1 commits)")[![piotrgradzinski](https://avatars.githubusercontent.com/u/1607439?v=4)](https://github.com/piotrgradzinski "piotrgradzinski (1 commits)")

---

Tags

password-strengthstrength-validationsymfonyvalidatorsymfonyvalidatorpassword

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[rollerworks/password-strength-bundle

Password-strength validator bundle for Symfony

1433.7M6](/packages/rollerworks-password-strength-bundle)[sllh/iso-codes-validator

Symfony validator wrapper of ronanguilloux/isocodes

37299.8k2](/packages/sllh-iso-codes-validator)

PHPackages © 2026

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