rollerworks / password-strength-validator
Password-strength validator for Symfony
Installs: 4 240 973
Dependents: 6
Suggesters: 0
Security: 0
Stars: 143
Watchers: 5
Forks: 31
Open Issues: 0
Requires
- php: >=8.2
- symfony/config: ^6.0 || ^7.0
- symfony/polyfill-mbstring: ^1.5.0
- symfony/translation: ^6.0 || ^7.0
- symfony/validator: ^6.0 || ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.5
- symfony/phpunit-bridge: ^6.0 || ^7.0
- dev-main / 2.0.x-dev
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-BETA1
- 1.7.x-dev
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- 1.4.x-dev
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- 1.1.x-dev
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-BETA3
- v1.0.0-BETA2
- v1.0.0-BETA1
This package is auto-updated.
Last update: 2024-11-17 19:09:02 UTC
README
This package provides various password strength validators for the Symfony Validator component.
To use this bundle with a Symfony application use the RollerworksPasswordStrengthBundle.
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 created by John Bafford.
Installation
To install this package, add rollerworks/password-strength-validator
to your composer.json:
$ php composer.phar require rollerworks/password-strength-validator
Now, Composer will automatically download all required files, and install them for you.
Requirements
You need at least PHP PHP 8.2 and Symfony 6, mbstring is recommended but not required.
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 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 for more information.
Strength validation
Validates the passwords strength-level (weak, medium, strong etc).
Requirements validation
Validates the passwords using explicitly configured requirements (letters, caseDiff, numbers, requireSpecialCharacter).
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:
<major>.<minor>.<patch>
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 http://semver.org/.
License
This library is released under the MIT license.
Contributing
This is an open source project. If you'd like to contribute, please read the Contributing Guidelines. If you're submitting a pull request, please follow the guidelines in the Submitting a Patch section.