Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-wp-hash-driver maintained by ammardev

Description
Supports Wordpress passwords hashing and checking in Laravel's Hash facade.
Last update
2022/02/10 23:34 (dev-master)
License
Downloads
9 299

Comments
comments powered by Disqus

Laravel Wordpress Hash Driver

Latest Version on Packagist

Total Downloads

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