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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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

参数

  1. $length 生成长度
  2. $Big 是否包含大写字母
  3. $Num 是否包含数字
  4. $lower 是否包含小写字母
  5. $s 是否包含符号

3.2 cc2 驼峰转字符串

参数

  1. $camelCaps [string] 驼峰命名字符串
  2. $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.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yjtec/support contains the following files

Loading the files please wait ....