Check Password Strength using WordPress API

WordPress uses the zxcvbn javascript library by Dropbox, to estimate the password strength.

We can see the implementation in:

with:

strength = wp.passwordStrength.meter( 
    pass1, 
    wp.passwordStrength.userInputBlacklist(),
    pass1 
);

As far as I know there’s no explicit PHP WordPress API for estimating the password strength, but zxcvbn has been ported to a PHP library here, but I’m don’t know the current state of that library.