Download the PHP package divineomega/symfony-password-exposed-bundle without Composer
On this page you can find all versions of the php package divineomega/symfony-password-exposed-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/symfony-password-exposed-bundle
More information about divineomega/symfony-password-exposed-bundle
Files in divineomega/symfony-password-exposed-bundle
Package symfony-password-exposed-bundle
Short Description Symfony bundle that checks if a password has been exposed in a data breach
License LGPL-3.0-only
Informations about the package symfony-password-exposed-bundle
🔒 Symfony Password Exposed Bundle
This package provides a Symfony bundle that checks if a password has been exposed in a data breach. It uses the haveibeenpwned.com passwords API via the jord-jd/password_exposed library.
It supports PHP 7.4 through current releases and Symfony 4.4 through 8.
Installation
The password_exposed symfony bundle can be easily installed using Composer. Just run the following command from the root of your project.
If you have never used the Composer dependency manager before, head to the Composer website for more information on how to get started.
Configuration
You can adjust this bundle with some simple configs
All keys are optional. The values above are the defaults.
Usage
In a controller
To check if a password has been exposed in a data breach, just pass it to the isExposed method.
Here is a basic usage example for a controller:
As a constraint in a form type
You can also use the password_exposed checker in a form type with the help of a constraint.
All versions of symfony-password-exposed-bundle with dependencies
symfony/framework-bundle Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/config Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/yaml Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/validator Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/translation Version ^4.4 || ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/translation-contracts Version ^1.1 || ^2.5 || ^3.0
jord-jd/password_exposed Version ^5.0