EPower Network Zealot 项目的小组件,非业务代码
composer require epnz/block
<?php
require __DIR__ . '/vendor/autoload.php';
// 请求端IP
// 以下与block()->request()->ip();是等效的,request() 是为了方便以后若有需要,可以传入参数
block()->request->ip();
block()->character->randChar($length);
block()->character->byteFormat($size, $dec);
block()->character->uuid($trim);
block()->date->timeComparison($time, $form);
block()->datermine->isMobil();
block()->export->json($param, $code);
block()->json->isJson($json, $option);
block()->json->jsonToArray($json);
block()->json->arrayToJson($arr);
block()->message->outPut($param, $data);
block()->message->padWithZeros($param, $data);
block()->request->curlPost($url, $param, $header, $cookieFile);
block()->request->curlGet($url, $param, $cookieFile);
block()->request->server($param);
block()->request->ip();
block()->request->iagentOs($str);
block()->tools->getImagesUrl($content, $order);
HTTP 响应代码 | PHP 标准规范(PSR 中文翻译) . 更多PHP标准规范
- 你可以免费使用源码,或用于二次开发,但请保留版权信息
- 更多细节参阅 LICENSE
Copyright © 2018-2024 EPNZ.com EPower Network Zealot