PHP code example of hao1617 / utils
1. Go to this page and download the library: Download hao1617/utils library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hao1617 / utils example snippets
ResponseHelper::success($data, '操作成功');
ResponseHelper::error('参数错误', 400);
use Gongying\Utils\StrHelper;
use Gongying\Utils\ResponseHelper;
$id = StrHelper::uuid();
return ResponseHelper::success(['id' => $id]);