https://github.com/fabiang/zend-pwnedpasswords
Validator for the Zend Framework for pwnedpasswords.com API: https://haveibeenpwned.com/API/v2#PwnedPasswords
https://github.com/fabiang/zend-pwnedpasswords
php pwnedpasswords zend-framework zf2 zf2-module zf3-module
Last synced: about 1 year ago
JSON representation
Validator for the Zend Framework for pwnedpasswords.com API: https://haveibeenpwned.com/API/v2#PwnedPasswords
- Host: GitHub
- URL: https://github.com/fabiang/zend-pwnedpasswords
- Owner: fabiang
- License: other
- Created: 2018-02-24T01:53:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T16:23:22.000Z (over 8 years ago)
- Last Synced: 2023-08-21T10:13:38.000Z (almost 3 years ago)
- Topics: php, pwnedpasswords, zend-framework, zf2, zf2-module, zf3-module
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fabiang/zend-pwnedpasswords
Validator for the Zend Framework for [pwnedpasswords.com API](https://haveibeenpwned.com/API/v2#PwnedPasswords).
[](https://packagist.org/packages/fabiang/zend-pwnedpasswords)
[](https://packagist.org/packages/fabiang/zend-pwnedpasswords)
## Installation
New to Composer? Read the [introduction](https://getcomposer.org/doc/00-intro.md#introduction). Run the following Composer command:
```console
$ 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
[
// ...
'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](LICENSE.md).