Skip to content

pavlakis/password-policy-builder

 
 

staysafe/password-policy-builder

Latest Version on Packagist Software License Build Status Coverage Status Total Downloads

Install

Via Composer

$ composer require staysafe/password-policy-builder

Usage

        $jsonConstraints = file_get_contents(dirname(__DIR__) . '/fixtures/policy.json');
        $policy = new JsonPolicy($jsonConstraints);

        $passwordPolicyBuilder = new PasswordPolicyBuilder($policy);
        if ($passwordPolicyBuilder->isValid($password)) {   
            // password meets the Password Policy
        }

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Credits

License

The BSD 3-Clause License. Please see License File for more information.

About

A verbose password policy builder

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%