Supports Wordpress passwords hashing and checking in Laravel's Hash facade.
ammardev/laravel-wp-hash-driver is a Laravel package for supports wordpress passwords hashing and checking in laravel's hash facade..
It currently has 16 GitHub stars and 9.394 downloads on Packagist (latest version v1.0.3).
Install it with composer require ammardev/laravel-wp-hash-driver.
Discover more Laravel packages by ammardev
or browse all Laravel packages to compare alternatives.
Last updated
A package that supports Wordpress hashing in Laravel applications. Useful when migrating Wordpress users to a Laravel project.
You can install the package via composer:
composer require ammardev/laravel-wp-hash-driver
You can use make and check methods in Laravel's Hash facade by choosing wordpress driver as the following:
// Hash a password:
$hashed = Hash::driver('wp')->make('my-password');
// Check a password:
Hash::driver('wp')->check('my-password', $hashed);
Or you can set Wordpress hashers as the default driver in config/hashing.php:
return [
// ...
'driver' => 'wp',
// ...
];
And then you can use make and check methods directly without choosing the driver using driver method.
composer test