PHP code example of mikemclin / laravel-wp-password
1. Go to this page and download the library: Download mikemclin/laravel-wp-password library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mikemclin / laravel-wp-password example snippets
'MikeMcLin\WpPassword\WpPasswordProvider'
use MikeMcLin\WpPassword\Facades\WpPassword;
$hashed_password = WpPassword::make('plain-text-password');
$password = 'plain-text-password';
$wp_hashed_password = '$P$B7TRc6vrwCfjgKLZLgmN.dmPo6msZR.';
if ( WpPassword::check($password, $wp_hashed_password) ) {
// Password success!
} else {
// Password failed :(
}