polarthink/utils

polarthink工具库

v0.1 2019-12-23 07:52 UTC

This package is auto-updated.

Last update: 2024-09-23 18:17:53 UTC


README

需依赖于thinkphp6.0

安装

composer require polarthink/utils

使用

响应返回

require_once './vendor/autoload.php';

use utils\reponse\Json;

var_dump(Json::success($msg, $data));
var_dump(Json::error('找不到资源', [], 404));