PHPackages                             evotodi/password-meter-bundle - 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. evotodi/password-meter-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

evotodi/password-meter-bundle
=============================

Password meter for symfony 7 that complements https://github.com/HamedFathi/PasswordMeter and passwordmeter.com

8.0.2(2mo ago)1360MITPHPPHP ^8

Since Jan 30Pushed 2mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (14)Versions (7)Used By (0)

[![Symfony](https://camo.githubusercontent.com/75640a8af2eb1f88bec55acdbfd1052c4a4734b55418179bbbc411a4bd0374ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d2532333030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/75640a8af2eb1f88bec55acdbfd1052c4a4734b55418179bbbc411a4bd0374ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d2532333030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d7768697465)[![PhpStorm](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)

Password Meter Symfony Bundle
=============================

[](#password-meter-symfony-bundle)

PasswordMeter is a php equivalent clone of [HamedFathi/PasswordMeter](https://github.com/HamedFathi/PasswordMeter) for javascript.

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

[](#installation)

Install the package with:

```
composer require evotodi/password-meter-bundle
```

Usage
-----

[](#usage)

This bundle provides a single service to generate a password score like [passwordmeter.com](http://www.passwordmeter.com/) and [HamedFathi/PasswordMeter](https://github.com/HamedFathi/PasswordMeter).

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

[](#configuration)

```
# config/packages/evotodi_password_meter.yaml
evotodi_password_meter:
    # Custom password requirements provider class
    requirements_provider: null

    # Custom password score range provider class
    score_provider: null
```

Implementing password requirements
----------------------------------

[](#implementing-password-requirements)

The default requirements are null and will only return a score and status.
Creating a custom requirements provider will give and array of errors that match your custom requirements.

First create a class that implements `Evotodi\PasswordMeterBundle\RequirementsInterface` and implement the `getRequirements` method. From the `getRequirements` method return a new `Evotodi\PasswordMeterBundle\Models\Requirements` with your desired password requirements.

```
// src/Service/PasswordMeterRequirementsProvider.php

namespace App\Service;

use Evotodi\PasswordMeterBundle\Interfaces\RequirementsInterface;
use Evotodi\PasswordMeterBundle\Models\Requirements;

class PasswordMeterRequirementsProvider implements RequirementsInterface
{

	public function getRequirements(): Requirements
	{
		return new Requirements(minLength: 10);
	}
}
```

Then set the following config. You may need to create the config file if it does not exist.

```
# config/packages/evotodi_password_meter.yaml
evotodi_password_meter:
    requirements_provider: App\Service\PasswordMeterRequirementsProvider
```

Implementing custom password score range
----------------------------------------

[](#implementing-custom-password-score-range)

Create a class that implements `Evotodi\PasswordMeterBundle\ScoreRangeInterface` and implement the `getScoreRange` method. From the `getScoreRange` method return a new array of score ranges.

```
// src/Service/PasswordMeterScoreProvider.php

namespace App\Service;

use Evotodi\PasswordMeterBundle\Interfaces\ScoreRangeInterface;

class PasswordMeterScoreProvider implements ScoreRangeInterface
{

	public function getScoreRange(): array
	{
		return [
            '40' => 'veryWeak', // 001  'weak', // 040  'medium', // 080  'strong', // 120  'veryStrong', // 180  'perfect', //  >= 200
        ];
	}
}
```

The array must contain at least 2 elements and the last element key must be `'_'`.

Then set the following config. You may need to create the config file if it does not exist.

```
# config/packages/evotodi_password_meter.yaml
evotodi_password_meter:
    score_provider: App\Service\PasswordMeterScoreProvider
```

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

[](#contributions)

Contributions are very welcome!

Please create detailed issues and pull requests.

Licence
-------

[](#licence)

This package is free software distributed under the terms of the [MIT license](LICENSE).

Updates
-------

[](#updates)

2026-04-24: Add Symfony 8 support. Drop support for Symfony 6. 2024-01-10: Add Symfony 7 support 2023-01-30: Initial release

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance87

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~237 days

Recently: every ~296 days

Total

6

Last Release

66d ago

Major Versions

6.2.1 → 7.0.02024-01-10

7.0.0 → 8.0.02026-04-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1625853?v=4)[Justin Davis](/maintainers/evotodi)[@evotodi](https://github.com/evotodi)

---

Top Contributors

[![evotodi](https://avatars.githubusercontent.com/u/1625853?v=4)](https://github.com/evotodi "evotodi (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evotodi-password-meter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evotodi-password-meter-bundle/health.svg)](https://phpackages.com/packages/evotodi-password-meter-bundle)
```

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)

PHPackages © 2026

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