PHPackages                             wll/hash - 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. wll/hash

ActiveLibrary[Security](/categories/security)

wll/hash
========

php-bcrypt

v0.1.3(6y ago)1121[1 issues](https://github.com/gg22mm/hash/issues)MITPHPPHP &gt;=7.0

Since Jan 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gg22mm/hash)[ Packagist](https://packagist.org/packages/wll/hash)[ RSS](/packages/wll-hash/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Hashing
=======

[](#hashing)

Bcrypt,Argon不可逆哈希加密,从laravel的： illuminate/hashing 包中提取出来,用于php 比如hyperf框架，其它非框架也可以。方便框架相互通用

基本使用
----

[](#基本使用)

1、 下载包

```
composer require wll/hash
```

2、 发布配置生成文件:config/autoload/hashing.php

```
bin/hyperf.php vendor:publish wll/hash
```

3、 开始使用 - 授权控制器中写

```
use Wll\Hash\Hashing\HashHyperfServiceProvider;		//hyperf 中使用
//use Wll\Hash\Hashing\HashLaravelServiceProvider;  //laravel 中使用 然当也可以用app()方式调用
//use Wll\Hash\Hashing\HashPhpServiceProvider;		//php 中使用

 public function index(){

	$hashHyperfServiceProvider=new HashHyperfServiceProvider();
	$hash=$hashHyperfServiceProvider->register();

	//生成加密密码
	$pass=$hash->make('123456');

	//验证密码是否正确
	if ($hash->check('123456', $pass)) {
	   // 密码匹配正确…
	   $data['state']='密码匹配正确';
	}
	$data['pass']=$pass;

	return $data;
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aa796e37c43d70ba54a6aba07bb50efeca3c0061a82bdd58d6e5bee312fe315?d=identicon)[gg22mm](/maintainers/gg22mm)

---

Top Contributors

[![gg22mm](https://avatars.githubusercontent.com/u/6648329?v=4)](https://github.com/gg22mm "gg22mm (9 commits)")

---

Tags

phplaravelhyperfbcryptArgon

### Embed Badge

![Health badge](/badges/wll-hash/health.svg)

```
[![Health](https://phpackages.com/badges/wll-hash/health.svg)](https://phpackages.com/packages/wll-hash)
```

###  Alternatives

[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[hyperf-ext/hashing

The Hyperf Hashing package.

1588.4k5](/packages/hyperf-ext-hashing)

PHPackages © 2026

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