mrprompt/silex-password

Silex Password Provider

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

This package is auto-updated.

Last update: 2024-11-21 06:59:02 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