shum/shum-unified-code

There is no license information available for the latest version (1.1.2) of this package.

Maintainers

Package info

github.com/DigitalUnion/unified_code

pkg:composer/shum/shum-unified-code

Statistics

Installs: 4 139

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.2 2020-05-13 03:15 UTC

This package is auto-updated.

Last update: 2026-03-13 15:58:58 UTC


README

用于返回统一的 code

Installation

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

注册

config -> app.php -> providers 添加 ShuM\Unifiedcode\UnifiedcodeServiceProvider::class

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

使用

int $code 返回码

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

Unifiedcode::parsingCode($code, $param)