Download the PHP package nowo-tech/password-strength-bundle without Composer
On this page you can find all versions of the php package nowo-tech/password-strength-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nowo-tech/password-strength-bundle
More information about nowo-tech/password-strength-bundle
Files in nowo-tech/password-strength-bundle
Package password-strength-bundle
Short Description Symfony PasswordType extension with configurable strength policies, live feedback, HTML pattern, and validator.
License MIT
Homepage https://github.com/nowo-tech/PasswordStrengthBundle
Informations about the package password-strength-bundle
Password Strength Bundle
⭐ Found this useful? Give it a star on GitHub so more developers can find it.
Symfony bundle that extends PasswordType with 100% configurable password hardness: named profiles (weak / medium / strong built in, plus your own), inline conditions, auto-built HTML pattern, live TypeScript feedback, and a validator constraint.
This bundle is FrankenPHP worker mode friendly.
|
Live requirements — all checks met |
Live requirements — unmet feedback |
Table of contents
- Features
- Installation
- Requirements
- Configuration
- Usage
- PasswordToggleBundle compatibility (optional)
- Demo
- Documentation
- Tests and coverage
- License
Features
- PasswordStrengthType — extends Symfony
PasswordType - Policy modes —
level(a named profile: built-in weak/medium/strong or your own, see Profiles) or inlineconditions - HTML
pattern— built automatically from the active policy - Live feedback — TypeScript evaluates requirements and shows what is missing
- Feedback position — configurable
aboveorbelowthe input - PasswordStrength validator — server-side enforcement with the same rules
- Multi-framework Twig themes — Bootstrap 3–5, Tailwind 2, Foundation 5–6, table/div layouts
- PasswordToggleBundle — optional show/hide toggle when that bundle is installed (auto-detected)
- Vite + pnpm + TypeScript assets (IIFE bundle for
assets:install) - Translations — DE, EN, ES, FR, IT, NL, PT (overridable from the app)
Installation
Register the bundle (Flex does this automatically):
Install public assets:
Include the script in your layout (or demo template):
Requirements
- PHP >= 8.2, < 8.6
- Symfony >= 7.4 || >= 8.0
Configuration
Profiles (default_profile + profiles, formerly default_level + levels) are described in docs/CONFIGURATION.md#profiles.
Usage
Form type (inline conditions)
Generator modes:
off— no generator (default)input— one click fills the field as visible textmodal— opens a dialog with suggestions, copy and “Use this password”
Validator constraint
PasswordStrengthType attaches this constraint itself (enforce: true, default), so a field rendered with the form type is validated server-side without the attribute; use the attribute for entities / DTOs that do not go through the form type (not both, or failures are reported twice). Add NotBlank and NotCompromisedPassword as needed — see SECURITY.
Available condition keys
| Key | Type | Description |
|---|---|---|
min_length |
int | Minimum length |
max_length |
int | Maximum length |
require_lowercase |
bool | At least one a-z |
require_uppercase |
bool | At least one A-Z |
require_digit |
bool | At least one digit |
require_special |
bool | At least one special char |
special_chars |
string | Charset for special chars |
disallow_whitespace |
bool | No spaces |
not_contain |
string[] | Forbidden substrings |
min_unique_chars |
int | Minimum unique characters |
regex |
string | Custom regex, bare (^[A-Z]+$) or delimited (/^[a-z]+$/i); checked server + client as given. The HTML pattern uses the delimiter-free body and is omitted when flags other than u are set. |
PasswordToggleBundle compatibility (optional)
PasswordToggleBundle is not required. With default settings the bundle works standalone using Symfony PasswordType.
When PasswordToggleBundle is installed, PasswordStrengthType automatically extends its PasswordType and renders the eye toggle alongside strength feedback and the optional password generator.
Per field:
The generator syncs toggle icon/aria state when it fills the field as visible text.
Demo
Open http://localhost:8021/en/ (redirect from /; set PORT in demo/symfony8/.env if needed).
Playwright e2e + README screenshots (REQ-DEMO-013):
Documentation
- Installation
- Configuration
- Usage
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- GitHub Actions CI requirements
- PSR evaluation (REQ-CS-007)
- FrankenPHP worker audit
- Demo with FrankenPHP
- Demo (Symfony 8)
Tests and coverage
| Language | Coverage (measured) |
|---|---|
| PHP | 99.31% lines (make coverage-check, gate ≥99%) |
| TypeScript | 100% lines, 96.75% min of statements/branches/functions/lines (make test-ts) |
| Python | N/A |
License
MIT — see LICENSE.
All versions of password-strength-bundle with dependencies
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/form Version ^7.4 || ^8.0
symfony/framework-bundle Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/translation Version ^7.4 || ^8.0
symfony/twig-bundle Version ^7.4 || ^8.0
symfony/validator Version ^7.4 || ^8.0
twig/extra-bundle Version ^3.12
twig/string-extra Version ^3.12