Download the PHP package johnxu/tool without Composer
On this page you can find all versions of the php package johnxu/tool. 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 tool
字符串操作
截取字符串
转换编码
内置方法
- cut(string, start , length) 截取字符串
- lower(string) // 转换小写
- upper(string) // 转换大小
- has(string, neddle) // 查找是否存在该字符串
- remove(string, neddle) // 去除字符串
- reverse(string) // 翻转字符串
- arrayToString(array) // 将数组转换成字符串
- stringToArray(string) // 将字符串转换成数组
- ucwords(string) // 将字符串每个单子首字母大写
- ucfirst(string) // 将字符首字母大写
- generateTradeNo(length) // 创建订单号\
- generateUid(); // 创建用户ID
- getMachineCode(block, blockSize, split); // 创建机器激活码:8E8363C1-094E0EDC-7D67C393
- formatBytes(size, delimiter); // 格式化文件大小:10KB, 10MB
RSA生成签名串
RSA校验签名
公私钥加密
公私钥解密
Config配置是用
http请求的使用
RESTFul风格的接口(只支持tp5)
RSA签名和验签
RSA加密与解密
用户授权管理
Hash加密和验证
时间操作
JWT验证(已废弃)
JWT(Json Web Tokens)
AES 加密与解密
CBC方式加密解密
ECB方式加密解密
压缩或解压文件
All versions of tool with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package johnxu/tool contains the following files
Loading the files please wait ....