PHPackages                             friendsofhyperf/encryption - 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. friendsofhyperf/encryption

ActiveLibrary[Security](/categories/security)

friendsofhyperf/encryption
==========================

The encryption component for Hyperf.

v3.1.75(5mo ago)313.1k—7%1MITPHP

Since May 21Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/friendsofhyperf/encryption)[ Packagist](https://packagist.org/packages/friendsofhyperf/encryption)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-encryption/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (106)Used By (1)

Encryption
==========

[](#encryption)

[![Latest Stable Version](https://camo.githubusercontent.com/7e997c2a958eb9fd8e3063f473c4ba0f5f66df08fd444d8303d8411e294b1576/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f656e6372797074696f6e)](https://packagist.org/packages/friendsofhyperf/encryption)[![Total Downloads](https://camo.githubusercontent.com/09e100ddaafc3eb823854d30147bbfb12b8970c7a957514c00b986303abeee88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f656e6372797074696f6e)](https://packagist.org/packages/friendsofhyperf/encryption)[![License](https://camo.githubusercontent.com/e9750e3e889db1a1abb783416325e0002de0d91f1500e3351e766802a3058297/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f656e6372797074696f6e)](https://github.com/friendsofhyperf/encryption)

The encryption component for Hyperf.

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

[](#installation)

```
composer require friendsofhyperf/encryption
```

Publish Config
--------------

[](#publish-config)

```
php bin/hyperf.php vendor:publish friendsofhyperf/encryption
```

Usage
-----

[](#usage)

```
$encryptString = encrypt($string);
$decryptString = decrypt($encryptString);
```

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance71

Regular maintenance activity

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~12 days

Recently: every ~74 days

Total

105

Last Release

171d ago

Major Versions

v2.0.5 → v3.0.0-beta132022-05-26

v2.0.10 → v3.0.0-beta222022-06-24

v2.0.19 → v3.0.0-rc.162022-09-21

v2.0.24 → v3.0.0-rc.462022-12-14

v2.0.28 → v3.0.142023-02-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (67 commits)")

---

Tags

phpencryptionswoolehyperfv3.1

### Embed Badge

![Health badge](/badges/friendsofhyperf-encryption/health.svg)

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

###  Alternatives

[hyperf/http-server

A HTTP Server for Hyperf.

102.8M305](/packages/hyperf-http-server)[hyperf/crontab

A crontab component for Hyperf.

131.6M62](/packages/hyperf-crontab)[friendsofhyperf/sentry

The sentry component for Hyperf.

1864.6k](/packages/friendsofhyperf-sentry)

PHPackages © 2026

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