metromix/password-encoder-bundle

Metromix Password Encoder Bundle

1.1.0 2017-10-27 10:00 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:24 UTC


README

Latest Stable Version License Total Downloads Build Status

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.