mikemclin/laravel-wp-password
Larablocks Analysis
mikemclin/laravel-wp-password works with Laravel 4 to 8 (latest release 2.0.3, Sep 30, 2021), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4 to 8, past end of life since Jan 24, 2023
- No release in the last 12 months (last: Sep 30, 2021)
- 64,276 downloads a month (at least 10,000)
- 86 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Sep 30, 2021.
- No releases in the last 12 months.
- First released: Aug 15, 2014.
- Monthly downloads: 64,276, up 40% from six months ago.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require mikemclin/laravel-wp-password |
|
| Latest Version: | 2.0.3 |
| PHP: | >=5.3.0 |
| Laravel: | 4 – 8 |
| License: | MIT |
| Last Updated: | Sep 30, 2021 |
| Links: | GitHub · Packagist |
Laravel WP Password
This Laravel 4/5/6/7 package provides an easy way to create and check against WordPress password hashes. WordPress is not required.
Installation
Step 1: Composer
Begin by installing this package through Composer. Edit your project's composer.json file to require mikemclin/laravel-wp-password.
"require": {
"mikemclin/laravel-wp-password": "~2.0.1"
}
Next, update Composer from the Terminal:
composer update
Step 2: Register Laravel Service Provider
Once this operation completes, the final step is to add the service provider.
- Laravel 5.x: Open
config/app.php, and add a new item to the providers array - Laravel 4.x: Open
app/config/app.php, and add a new item to the providers array
'MikeMcLin\WpPassword\WpPasswordProvider'
Usage
Add a use statement for the WpPassword facade
use MikeMcLin\WpPassword\Facades\WpPassword;
make() - Create Password Hash
Similar to the WordPress wp_hash_password() function
$hashed_password = WpPassword::make('plain-text-password');
check() - Check Password Hash
Similar to the WordPress wp_check_password() function
$password = 'plain-text-password';
$wp_hashed_password = '$P$B7TRc6vrwCfjgKLZLgmN.dmPo6msZR.';
if ( WpPassword::check($password, $wp_hashed_password) ) {
// Password success!
} else {
// Password failed :(
}
Dependency Injection
I used a facade above to simplify the documentation. If you'd prefer not to use the facade, you can inject the following interface: MikeMcLin\WpPassword\Contracts\WpPassword.
Related Packages
Laravel package that checks and creates Drupal 7 password hashes
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.3 | >=5.3.0 | >=4.0.0 | MIT | |
| 2.0.2 | >=5.3.0 | >=4.0.0 | MIT | |
| 2.0.1 | >=5.3.0 | >=4.0.0 | MIT | |
| 2.0.0 | >=5.3.0 | >=4.0.0 | MIT | |
| 1.0.0 | >=5.3.0 | 4.* | MIT |