ammardev/laravel-wp-hash-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ammardev/laravel-wp-hash-driver

最新稳定版本:v1.0.3

Composer 安装命令:

composer require ammardev/laravel-wp-hash-driver

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 9.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-18