rollerworks/password-common-list
最新稳定版本:v0.4.0
Composer 安装命令:
composer require rollerworks/password-common-list
包简介
Password CommonList validator for Symfony
README 文档
README
This package provides a Symfony Validator for the xato-net-10-million-passwords-1000000 CommonPassword list.
Note: It's better to use the NotCompromisedPassword validator when possible. The PasswordCommonList should only be used when network access is limited or restricted.
Only passwords of 6 or more characters are included in this list.
Installation
To install this package, add rollerworks/password-common-list to your composer.json:
$ php composer.phar require rollerworks/password-common-list
Now, Composer will automatically download all required files, and install them for you.
Note: To use this library with a Symfony Application make sure the \Rollerworks\Bundle\PasswordCommonListBundle\RollerworksPasswordCommonListBundle is enabled.
Requirements
You need at least PHP 8.0 and Symfony 6.4, mbstring is recommended but not required.
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 PasswordCommonList validator.
Use the Rollerworks\Component\PasswordCommonList\Validator\Constraints\NotInPasswordCommonList constraint as described in the Symfony Documentation. This constraint has no special options.
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.
统计信息
- 总下载量: 25.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04