PHPackages                             mirrorgdit/php-encdec - 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. mirrorgdit/php-encdec

ActiveExtension[Security](/categories/security)

mirrorgdit/php-encdec
=====================

类似手机号码等数字串的加密解密

v1.1(6y ago)2351MITPHPPHP &gt;=5.6

Since Aug 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mirrorgdit/php-encdec)[ Packagist](https://packagist.org/packages/mirrorgdit/php-encdec)[ RSS](/packages/mirrorgdit-php-encdec/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

php-encdec
==========

[](#php-encdec)

[![Latest Stable Version](https://camo.githubusercontent.com/6cd46ac03f8643d5d973d3fa28b10d1f3b985d10d48ffbd0642b7edce56e8240/68747470733a2f2f706f7365722e707567782e6f72672f6d6972726f72676469742f7068702d656e636465632f762f737461626c65)](https://packagist.org/packages/mirrorgdit/php-encdec)[![Total Downloads](https://camo.githubusercontent.com/acaa91916b62bcf2c70ada357c3580f1ab8882e25560b79f0e3fcf72be5b0e46/68747470733a2f2f706f7365722e707567782e6f72672f6d6972726f72676469742f7068702d656e636465632f646f776e6c6f616473)](https://packagist.org/packages/mirrorgdit/php-encdec)[![License](https://camo.githubusercontent.com/026baf07f7f96e506d3df61e1ffe175acc966b34c05043224a283a6c39a5297d/68747470733a2f2f706f7365722e707567782e6f72672f6d6972726f72676469742f7068702d656e636465632f6c6963656e7365)](https://packagist.org/packages/mirrorgdit/php-encdec)

安装
--

[](#安装)

```
composer require mirrorgdit/php-encdec

```

Demo
----

[](#demo)

```
require_once './vendor/autoload.php';

use mirrorgdit\encdec\Encdec;

$decStr = Encdec::dec2any("18612345678");
$anyStr = Encdec::any2dec($decStr);

echo "将手机号码加密后：".$decStr;
echo "";
echo "将加密后的串解密：".$anyStr;

```

### 问题反馈

[](#问题反馈)

在使用中有任何问题，欢迎反馈给我，可以用以下联系方式跟我交流

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eea51b3dd792d07afebbf02d233a7c45ad7b4b680a0093cfb0a875c70cf9233b?d=identicon)[mirrorgdit](/maintainers/mirrorgdit)

---

Top Contributors

[![mirrorgdit](https://avatars.githubusercontent.com/u/3040282?v=4)](https://github.com/mirrorgdit "mirrorgdit (11 commits)")

---

Tags

phpdecencmirrorgdit

### Embed Badge

![Health badge](/badges/mirrorgdit-php-encdec/health.svg)

```
[![Health](https://phpackages.com/badges/mirrorgdit-php-encdec/health.svg)](https://phpackages.com/packages/mirrorgdit-php-encdec)
```

###  Alternatives

[stymiee/php-simple-encryption

The PHP Simple Encryption library is designed to simplify the process of encrypting and decrypting data while ensuring best practices are followed. By default is uses a secure encryption algorithm and generates a cryptologically strong initialization vector so developers do not need to becomes experts in encryption to securely store sensitive data.

448.0k](/packages/stymiee-php-simple-encryption)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[ukrbublik/openssl_x509_crl

Missing OpenSSL function on PHP to create CRL (certificate revocation list) for CA

182.1k](/packages/ukrbublik-openssl-x509-crl)

PHPackages © 2026

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