Download the PHP package yjtec/support without Composer
On this page you can find all versions of the php package yjtec/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yjtec/support
More information about yjtec/support
Files in yjtec/support
Download yjtec/support
More information about yjtec/support
Files in yjtec/support
Please rate this library. Is it a good library?
Informations about the package support
yjtec support
1.Curl
php post和get请求
1.1 Curl::get($url)
1.2 Curl::post($url,$data);
1.3 Curl::put($url,$data);
1.4 Curl::delete($url);
2.sign
1.1 sign::make($secret,$timestamp,$data,[debug:true|false]);
参数
$secret 密钥 $timestamp 当前时间戳(time()) $data 要加密的数据
返回 array
['sign'=>'43ad8f0ab5573fc6fe0a60b5b6ed7216']
如果debug 为ture
[ 'sign' => '43ad8f0ab5573fc6fe0a60b5b6ed7216', 'paramstr' => 'lbfK571EUHt7oDEYA46D0ylY5zZhbuIi-appidSxmfErjzem3ylFBAout_trade_no12312300123123-1559295437' ]
3.str
3.1 random
参数
- $length 生成长度
- $Big 是否包含大写字母
- $Num 是否包含数字
- $lower 是否包含小写字母
- $s 是否包含符号
3.2 cc2 驼峰转字符串
参数
- $camelCaps [string] 驼峰命名字符串
- $separator [string] 连接字符串 可选
3.3 uncc2 连接符转驼峰
同上
3.Nested
无限级分类
3.1.unlimitedForLevel(cate,[html='-'],[$pid=0],$level=1) static
无线分类组合成一位数组
3.2.unlimitedForlayer($cate,[$name="child"],[$pid=0])
返回多维数组
3.3.getParents($cate,$pid)
返回子分类的所有父级ID
3.4.getChildrenId($cate,$pid)
s返回所有子分类的ID
3.5.getChildren($cate,$pid)
返回所有子级分类
4.URL操作
4.1 URL::parse(String $url)
解析URL
4.2 URL::params(String $url)
解析URL上的参数
4.3 URL::build(Array $params,String $uri)
数组转为url参数
4.4 URL::uri(String $uri)
返回url中的url信息
4.5 URL::except(String|Array $filter,$url)
清楚url参数中的某个值
All versions of support with dependencies
PHP Build Version
Package Version
No informations.
The package yjtec/support contains the following files
Loading the files please wait ....