PHPackages                             babeuloula/password-constraint - 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. babeuloula/password-constraint

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

babeuloula/password-constraint
==============================

Password constraint for Symfony

1.0.1(2y ago)0420MITPHPPHP &gt;=8.1

Since Apr 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/babeuloula/password-constraint)[ Packagist](https://packagist.org/packages/babeuloula/password-constraint)[ RSS](/packages/babeuloula-password-constraint/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Password Constraint
===================

[](#password-constraint)

Password constraint for Symfony. Based on the [validator of Laravel framework](https://github.com/laravel/framework/blob/9.x/src/Illuminate/Validation/Rules/Password.php). It's recommended to use with [NotCompromisedPassword](https://symfony.com/doc/current/reference/constraints/NotCompromisedPassword.html) constraint.

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

[](#requirements)

- php &gt;= 8.1
- symfony/validator &gt;= 6.0

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

[](#installation)

```
composer require babeuloula/password-constraint
```

How to use?
-----------

[](#how-to-use)

```
use BaBeuloula\Constraint\Password;

class PasswordDummy
{
    #[Password]
    private $a;

    #[Password(min: 8, minMessage: 'myMessage')]
    private $b;

    #[Password(letters: true, lettersMessage: 'myMessage', groups: ['my_group'])]
    private $c;
```

- min (12): The minimum size of the password.
- mixedCase (false): If the password requires at least one uppercase and one lowercase letter.
- letters (false): If the password requires at least one letter.
- numbers (false): If the password requires at least one number.
- symbols (false): If the password requires at least one symbol.

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~675 days

Total

2

Last Release

897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3761b383fa6ec2ff0c3afa00734e38f37f25562c6724224417f3d885e8cbae52?d=identicon)[BaBeuloula](/maintainers/BaBeuloula)

---

Top Contributors

[![babeuloula](https://avatars.githubusercontent.com/u/4849233?v=4)](https://github.com/babeuloula "babeuloula (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/babeuloula-password-constraint/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k52.2M378](/packages/api-platform-core)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[api-platform/serializer

API Platform core Serializer

295.3M101](/packages/api-platform-serializer)[api-platform/validator

API Platform validator component

275.1M31](/packages/api-platform-validator)

PHPackages © 2026

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