createnl/zxcvbn-bundle
Symfony bundle integrating zxcvbn-php for password strength scoring with user-data hints, localized feedback (EN/NL/FR), and support for custom matchers. Provides a factory service to create a Zxcvbn instance for easy use in controllers and services.
zxcvbn.matcher tag)."This bundle lets us automatically enforce strong passwords while improving user experience—no extra dev work. It’s like a ‘password spellcheck’ that blocks weak credentials (e.g., ‘password123’) and suggests fixes in real time. Used by Dropbox, it reduces support costs from weak passwords and aligns with security compliance. Zero upfront cost; just a composer require."
ROI:
*"This wraps zxcvbn-php in a Symfony bundle, giving us:
Tradeoffs:
Implementation:
composer require createnl/zxcvbn-bundle
Then integrate in controllers/forms:
$score = $zxcvbn->passwordStrength($password, [$user->name, $user->email]);
if ($score['score'] < 3) { throw new \InvalidArgumentException($score['feedback']['warning']); }
```"
**Alternatives**: Custom regex or client-side JS (but lose zxcvbn’s adaptive scoring)."
How can I help you explore Laravel packages today?