mrprompt/silex-password

Silex Password Provider

dev-master 2016-10-22 15:38 UTC

This package is auto-updated.

Last update: 2024-12-21 07:08:11 UTC


README

Build Status Code Climate Test Coverage Issue Count

Install

composer require mrprompt/silex-password

Usage

use SilexFriends\Password\Password as PasswordServiceProvider;

$cost = 8;
$app->register(new PasswordServiceProvider($cost));

$passwordClean = 'abcd1234';

// generate
$passwordEncrypted = $app['password.generate']($passwordClean);

// verify
$checkPassword = $app['password.verify']($passwordClean, $passwordEncrypted);

Test

./vendor/bin/phpunit

License

MIT