Registry / auth / bjeavons-zxcvbn-php

bjeavons-zxcvbn-php

JSON →
library1.4.2phppackagistunverified

Realistic password strength estimation PHP library based on Zxcvbn JS

composer require bjeavons/zxcvbn-php
INSTALL
IMPORT
SIG · BJEAVONS-ZXCVBN-PH
B
bjeavons-zxcvbn-php
authphpv1.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Zxcvbn
use ZxcvbnPhp\Zxcvbn;

Estimate password strength.

use ZxcvbnPhp\Zxcvbn; $zxcvbn = new Zxcvbn(); $result = $zxcvbn->passwordStrength('password123'); echo $result['score'];
Debug
Known issues
gotchaScore is 0-4, not a boolean
fix
Use score >= 3 for strong passwords.
affects: all
Upgrade
Version history
1.4.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources
bjeavons-zxcvbn-php — pip install bjeavons-zxcvbn-php · libregistry