ammardev/laravel-wp-hash-driver
Laravel Wordpress Hash Driver
A package that supports Wordpress hashing in Laravel applications. Useful when migrating Wordpress users to a Laravel project.
Installation
You can install the package via composer:
composer require ammardev/laravel-wp-hash-driver
Usage
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.
Testing
composer test
Related Packages
Allows you to define what attributes in your Eloquent Model which should be hash...
A hashing library that will generate and add hashes to your laravel models.
Replace the BCrypt hashing with native PHP hashing algorithm for Laravel.
Laravel package that checks and creates WordPress password hashes
Wordpress like shortcodes for Laravel 5, 6, 7, 8, 9, 10, 11 and 12