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

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

intracto/password-validator
===========================

Symfony validation for Intracto's standard password policy

3.0.0(2y ago)16302[1 issues](https://github.com/Intracto/PasswordValidator/issues)MITPHP

Since Oct 9Pushed 2y ago5 watchersCompare

[ Source](https://github.com/Intracto/PasswordValidator)[ Packagist](https://packagist.org/packages/intracto/password-validator)[ RSS](/packages/intracto-password-validator/feed)WikiDiscussions master Synced 3d ago

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

PasswordValidator
=================

[](#passwordvalidator)

Symfony validation for Intracto's standard password policy

### The policy consists of:

[](#the-policy-consists-of)

- minimum length (defaults on 8 characters)
- at least one upper cased character
- at least one lower cased character
- at least one number
- cannot equal the username
- maximum length (defaults on integer limit) - de facto optional

installation
------------

[](#installation)

Using composer:

```
composer require intracto/password-validator

```

The password constraint and -validator are dependent on both `symfony/validator` and `symfony/security-core`.

Usage
-----

[](#usage)

The validator is designed as a class validator on an entity implementing the `Symfony\Component\Security\Core\User\UserInterface`.

In order to validate the password, you need to provide the accessor and property path to the plain password which needs validation.

A basic working example would be:

```

/**
 * @Password(plainPasswordAccessor="getPlainPassword", plainPasswordProperty="plain_password")
 */
class User implements UserInterface
{

   /** @var string */
   private $plain_password;

   /** @return string */
   public function getPlainPassword(): string
   {
       return $this->plain_password;
   }

      ...

}

```

Contributions
-------------

[](#contributions)

Do you feel the code or policy are too rigid, or just not strict enough? Feel free to open up an issue and/or submit a pull request with your suggestions.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~164 days

Recently: every ~252 days

Total

10

Last Release

930d ago

Major Versions

1.1.0 → 2.0.02021-01-21

2.x-dev → 3.0.02023-10-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/57f44cb52273c29c230dbd1e9ef080402d53eaebcdd1fafbf5c6b75527b40199?d=identicon)[tvlooy](/maintainers/tvlooy)

![](https://www.gravatar.com/avatar/80809e7caf8341b1bac3d759e2b159a38b9bdab2deee5b0d4d66de6c83b992d1?d=identicon)[IntractoSupport](/maintainers/IntractoSupport)

![](https://avatars.githubusercontent.com/u/3265146?v=4)[Jan Decavele](/maintainers/jandc)[@JanDC](https://github.com/JanDC)

---

Top Contributors

[![JanDC](https://avatars.githubusercontent.com/u/3265146?v=4)](https://github.com/JanDC "JanDC (20 commits)")[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (1 commits)")[![rjwebdev](https://avatars.githubusercontent.com/u/12196579?v=4)](https://github.com/rjwebdev "rjwebdev (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[sllh/iso-codes-validator

Symfony validator wrapper of ronanguilloux/isocodes

37299.8k2](/packages/sllh-iso-codes-validator)[digitalrevolution/symfony-validation-shorthand

Validation shorthand for symfony

12108.5k2](/packages/digitalrevolution-symfony-validation-shorthand)[digitalrevolution/symfony-request-validation

Automatic request validation for symfony

1296.0k](/packages/digitalrevolution-symfony-request-validation)

PHPackages © 2026

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