Via Composer
$ composer require staysafe/password-policy-builder        $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
        }$ composer testPlease see CONTRIBUTING and CODE_OF_CONDUCT for details.
The BSD 3-Clause License. Please see License File for more information.