PHPackages                             shum/shum-unified-code - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shum/shum-unified-code

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shum/shum-unified-code
======================

1.1.2(5y ago)14.1kPHP

Since Jan 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DigitalUnion/unified_code)[ Packagist](https://packagist.org/packages/shum/shum-unified-code)[ RSS](/packages/shum-shum-unified-code/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (14)Used By (0)

用于返回统一的 code

### Installation

[](#installation)

```
$ composer require "shum/shum-unified-code" -vvv
```

### 注册

[](#注册)

config -&gt; app.php -&gt; providers 添加 ShuM\\Unifiedcode\\UnifiedcodeServiceProvider::class
--------------------------------------------------------------------------------------------

[](#config---appphp---providers-添加-shumunifiedcodeunifiedcodeserviceproviderclass)

config -&gt; app.php -&gt; aliases 添加 'Unifiedcode' =&gt; ShuM\\Unifiedcode\\Facades\\Unifiedcode::class,
---------------------------------------------------------------------------------------------------------

[](#config---appphp---aliases-添加-unifiedcode--shumunifiedcodefacadesunifiedcodeclass)

### 使用

[](#使用)

int $code 返回码
-------------

[](#int-code-返回码)

array $param 需要替换的值 例: array(':type' =&gt; 1, ':name' =&gt; 'shum')
-------------------------------------------------------------------

[](#array-param-需要替换的值--例-arraytype--1-name--shum)

Unifiedcode::parsingCode($code, $param)
---------------------------------------

[](#unifiedcodeparsingcodecode-param)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~45 days

Total

13

Last Release

2187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9392735f24dd22252a636537922bb815bfdb898c4974b58bede6d892ee1823f2?d=identicon)[wuwielk](/maintainers/wuwielk)

### Embed Badge

![Health badge](/badges/shum-shum-unified-code/health.svg)

```
[![Health](https://phpackages.com/badges/shum-shum-unified-code/health.svg)](https://phpackages.com/packages/shum-shum-unified-code)
```

PHPackages © 2026

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