fabiang / zend-pwnedpasswords
This package is abandoned and no longer maintained.
No replacement package was suggested.
Validator for the Zend Framework for pwnedpasswords.com API
0.1.0
2018-02-24 01:52 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- psr/log: ^1.0
- zendframework/zend-log: ^2.9
- zendframework/zend-servicemanager: ^2.7.8 || ^3.0
- zendframework/zend-validator: ^2.10
Requires (Dev)
- zendframework/zend-modulemanager: ^2.2 || ^3.0
This package is auto-updated.
Last update: 2024-02-29 02:59:06 UTC
README
Validator for the Zend Framework for pwnedpasswords.com API.
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.