PHPackages                             wll/encrypt - 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/encrypt

ActiveLibrary[Security](/categories/security)

wll/encrypt
===========

php-encrypt

v0.1.4(6y ago)09MITPHPPHP &gt;=7.0

Since Jan 30Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

encrypt
=======

[](#encrypt)

encrypt可逆加密,从laravel中提取出来,用于php 比如hyperf框架，其它非框架也可以用

基本使用
----

[](#基本使用)

1、 下载包

```
composer require wll/encrypt
```

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

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

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

```
use Wll\Encrypt\Encryption\EncryptionHyperfServiceProvider;		//hyperf 中使用
//use Wll\Encrypt\Encryption\EncryptionLaravelServiceProvider;  //laravel 中使用 然当也可以用app()方式调用
//use Wll\Encrypt\Encryption\EncryptionPhpServiceProvider;		//php 中使用

 public function index(){

   $encryptionHyperfServiceProvider = new EncryptionHyperfServiceProvider();
   $encrypt = $encryptionHyperfServiceProvider->register();
   //生成密码
   $pass = $encrypt->encrypt('admin', true);
   //解密
   $descPass=$encrypt->decrypt($pass, true);
   //
   return ['pass'=>$pass,'descPass'=>$descPass];
}

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

5

Last Release

2299d 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 (8 commits)")

---

Tags

phplaravelencrypthyperf

### Embed Badge

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

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

###  Alternatives

[tzsk/otp

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

241641.4k1](/packages/tzsk-otp)[hemiframe/php-aes

PHP class for encrypt and decrypt data with AES algorithm

1030.3k](/packages/hemiframe-php-aes)

PHPackages © 2026

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