ylbtest/output_standard_log

此软件包最新版本(1.0.2)没有提供许可证信息。

1.0.2 2019-03-23 14:41 UTC

This package is not auto-updated.

Last update: 2024-09-30 22:30:40 UTC


README

用于返回统一的 code

安装

$ 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)