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: predefined levels, 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(weak/medium/strong/custom) 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.1, < 8.6
- Symfony >= 6.0 || >= 7.0 || >= 8.0
Configuration
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
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 (server + pattern) |
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
- GitHub Actions CI requirements
- Installation
- Configuration
- PSR evaluation (REQ-CS-007)
- Usage
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- FrankenPHP worker audit
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- Demo with FrankenPHP
- Demo (Symfony 8)
Tests and coverage
| Language | Coverage (approx.) |
|---|---|
| PHP | ~99% lines (make test-coverage) |
| TypeScript | ~90% (make test-ts) |
License
MIT — see LICENSE.
All versions of password-strength-bundle with dependencies
symfony/config Version ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.0 || ^7.0 || ^8.0
symfony/form Version ^6.0 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.0 || ^7.0 || ^8.0
symfony/http-foundation Version ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^6.0 || ^7.0 || ^8.0
symfony/twig-bundle Version ^6.0 || ^7.0 || ^8.0
symfony/validator Version ^6.0 || ^7.0 || ^8.0
twig/extra-bundle Version ^3.12
twig/string-extra Version ^3.12