New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ammardev/laravel-wp-hash-driver

Supports Wordpress passwords hashing and checking in Laravel's Hash facade.
9,401 16
Install
composer require ammardev/laravel-wp-hash-driver
Latest Version:v1.0.3
PHP:^7.2|^8.0
Laravel:6 – 9
License:MIT
Last Updated:Feb 10, 2022
Links: GitHub  ·  Packagist
Maintainer: ammardev

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

Related Packages

mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

3,739,271 86
pderas/shambles

A hashing library that will generate and add hashes to your laravel models.

40,282 0
larapack/attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hash...

1,236 2
josh-taylor/sage-svg

WordPress package to enable a blade directive to use SVG images inline with Sage...

46,556 18

Version History

Version Released PHP Laravel License
v1.0.3 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
v1.0.2 ^7.2|^8.0 ^6.0|^7.0|^8.0 MIT
v1.0.1 ^7.2|^8.0 ^6.0|^7.0|^8.0 MIT
v1.0.0 ^7.2 ^6.0|^7.0|^8.0 MIT