metromix / password-encoder-bundle
Metromix Password Encoder Bundle
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.0
- symfony/security: ~3.0
- symfony/symfony: ~3.0
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
Suggests
- ext-libsodium: >=1.0.6
- ext-sodium: >=1.0.6
This package is auto-updated.
Last update: 2024-10-29 04:53:24 UTC
README
PasswordEncoderBundle
This Symfony-bundle add PHP Libsodium password encryption into your Symfony application.
Installation
To install this package, add metromix/password-encoder-bundle
to your composer.json:
$ php composer.phar require metromix/password-encoder-bundle
Now, Composer will automatically download all required files, and install them for you.
Enable the bundle
Enable the bundle in the kernel:
<?php // in AppKernel::registerBundles() $bundles = [ // ... new Metromix\PasswordEncoderBundle\MetromixPasswordEncoderBundle(), // ... ];
Update config
Add configuration to security.yml
security: encoders: AppBundle\Entity\User: id: metromix_encoder
Add parameters to config.yml
metromix_password_encoder: salt: "<salt>"
Requirements
You need at least PHP 7.x with libsodium or PHP 7.2, mbstring is recommended but not required.
Congratulations! You're ready!
Contributing
This is an open source project. If you're submitting a pull request, please follow the guidelines in the Submitting a Patch section.