Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

fabiang/zend-pwnedpasswords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fabiang/zend-pwnedpasswords

Validator for the Zend Framework for pwnedpasswords.com API.

Latest Stable Version License

Installation

New to Composer? Read the introduction. Run the following Composer command:

$ composer require fabiang/zend-pwnedpasswords

Use together with Zend-MVC

If you're using the component installer you should be asked where this module should be added. If not add this to your application.config.php:

<?php

return [
    'modules' => [
        // ...
        'Fabiang\ZendPwnedpasswords',
    ],
];

You then can use the validator in your forms, either by its FQCN or by its name 'pwnedpasswords'.

Options

You can pass some options to the validator:

  • returnOnError: should the validator return true/false on a transfer error
  • logger: you can pass a PSR-3 logger to log all transfer errors
  • logLevel: any PSR-3 log level, which is used as log level when errors are logged

Licence

BSD-2-Clause. See the LICENSE.md.