PHPackages                             mikemclin/wp-password - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. mikemclin/wp-password

Abandoned → [mikemclin/laravel-wp-password](/?search=mikemclin%2Flaravel-wp-password)Laravel-package[Security](/categories/security)

mikemclin/wp-password
=====================

Laravel package that checks and creates WordPress password hashes

2.0.3(4y ago)6732015[2 issues](https://github.com/mikemclin/laravel-wp-password/issues)MITPHPPHP &gt;=5.3.0CI failing

Since Aug 15Pushed 4y ago5 watchersCompare

[ Source](https://github.com/mikemclin/laravel-wp-password)[ Packagist](https://packagist.org/packages/mikemclin/wp-password)[ Docs](https://github.com/mikemclin/laravel-wp-password)[ RSS](/packages/mikemclin-wp-password/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (6)Used By (0)

Laravel WP Password
===================

[](#laravel-wp-password)

[![Build Status](https://camo.githubusercontent.com/9528472817e3a9d8de55b3e7a34b47372aac8e7c827e2a9f5aabfab4d5eaa7df/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d696b656d636c696e2f6c61726176656c2d77702d70617373776f72642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mikemclin/laravel-wp-password)[![Coverage Status](https://camo.githubusercontent.com/26dca72314bd97886195c17bf6dd6ba30288728ef18f294aa6d46e8ef8fcfd47/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d696b656d636c696e2f6c61726176656c2d77702d70617373776f72642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/mikemclin/laravel-wp-password?branch=master)

This Laravel 4/5/6/7 package provides an easy way to create and check against WordPress password hashes. WordPress is not required.

Installation
------------

[](#installation)

#### Step 1: Composer

[](#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

[](#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
-----

[](#usage)

Add a **use statement** for the WpPassword facade

```
use MikeMcLin\WpPassword\Facades\WpPassword;
```

### `make()` - Create Password Hash

[](#make---create-password-hash)

Similar to the WordPress [`wp_hash_password()`](http://codex.wordpress.org/Function_Reference/wp_hash_password) function

```
$hashed_password = WpPassword::make('plain-text-password');
```

### `check()` - Check Password Hash

[](#check---check-password-hash)

Similar to the WordPress [`wp_check_password()`](http://codex.wordpress.org/Function_Reference/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

[](#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`.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~650 days

Total

5

Last Release

1685d ago

Major Versions

1.0.0 → 2.0.02015-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/51d520461cb8178303489e606806b6057e107083bf2fc30b2071583b574c2563?d=identicon)[mikemclin](/maintainers/mikemclin)

---

Top Contributors

[![mikemclin](https://avatars.githubusercontent.com/u/1570155?v=4)](https://github.com/mikemclin "mikemclin (54 commits)")[![prigal](https://avatars.githubusercontent.com/u/895267?v=4)](https://github.com/prigal "prigal (2 commits)")[![gpressutto5](https://avatars.githubusercontent.com/u/12385501?v=4)](https://github.com/gpressutto5 "gpressutto5 (1 commits)")[![perryz](https://avatars.githubusercontent.com/u/62052812?v=4)](https://github.com/perryz "perryz (1 commits)")[![vladbndko](https://avatars.githubusercontent.com/u/16262095?v=4)](https://github.com/vladbndko "vladbndko (1 commits)")

---

Tags

laravelwordpresspasswordhashing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mikemclin-wp-password/health.svg)

```
[![Health](https://phpackages.com/badges/mikemclin-wp-password/health.svg)](https://phpackages.com/packages/mikemclin-wp-password)
```

###  Alternatives

[mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

863.4M2](/packages/mikemclin-laravel-wp-password)[ammardev/laravel-wp-hash-driver

Supports Wordpress passwords hashing and checking in Laravel's Hash facade.

169.3k](/packages/ammardev-laravel-wp-hash-driver)[olssonm/laravel-backup-shield

Protection for your laravel backups

3019.5k](/packages/olssonm-laravel-backup-shield)[robclancy/laravel4-hashing

Package for when you can't use Bcrypt in Laravel 4.

301.8k1](/packages/robclancy-laravel4-hashing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
