ammardev / laravel-wp-hash-driver
Supports Wordpress passwords hashing and checking in Laravel's Hash facade.
Installs: 8 935
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.2|^8.0
- illuminate/hashing: ^6.0|^7.0|^8.0|^9.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0|^7.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-11 04:41:36 UTC
README
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