Download the PHP package littlemo/utils without Composer
On this page you can find all versions of the php package littlemo/utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package utils
Littlemo utils
介绍
php常用工具库
安装
composer.json
使用
统计单位时间内同一个IP请求次数
需要安装
redis
扩展,并启动redis
服务
示例代码
自动更新Git
仅支持gitee
示例代码
- 拉取代码的日志会直接在页面输出
下载文件
示例代码
Tools
生成随字符串
示例代码
参数说明 | 参数 | 类型 | 默认 | 说明 |
---|---|---|---|---|
length | int | 32 | 制作随机字符串长度 | |
enum | Array | ['0','a','A'] | 字符串类型选择(0=0-9,a=a-z,A=A-Z) | |
dict | string | 初始字符库(自定义字符库) |
制作签名
示例代码
参数说明 | 参数 | 类型 | 必填 | 默认 | 说明 |
---|---|---|---|---|---|
params | Array | Y | 需要按照字段名的ASCII 码从小到大排序(字典序)的参数 | ||
params_disorder | Array | N | [] | 无需排序操作的参数 | |
type | string | N | md5 | 加密方式(可选:md5,MD5,sha1,SHA1) |
type可选参数说明 | 参数 | 说明 |
---|---|---|
md5 | 以 32 字符的十六进制数形式返回散列值 | |
MD5 | 以 16 字符长度的原始二进制格式返回 | |
sha1 | 40 字符长度的十六进制数 | |
SHA1 | 以 20 字符长度的原始二进制格式返回 |
Banner
合成图片
示例代码
参与贡献
- littlemo
特技
- 简洁易用
All versions of utils with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0||^8.0
The package littlemo/utils contains the following files
Loading the files please wait ....