Download the PHP package leruge/tp6-helper without Composer

On this page you can find all versions of the php package leruge/tp6-helper. 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 tp6-helper

封装一些经常用的函数

  1. check_captcha($phone, $code, $msg) 验证验证码是否正确,测试账号不验证,万能验证码888888
  2. 在extra.php中配置test_account测试账号,数组格式
参数 含义
phone 手机号
code 验证码
msg 错误提示信息
  1. format_time($time, $type) 格式化时间
参数 含义
time 需要格式化的时间
type 1是Y-m-d H:i:s;2是Y-m-d H:i;3是Y-m-d;4是聊天时间
  1. generate_nickname() 生成昵称
  2. handle_get_pic($pics, $type) 生成可直接访问的地址
参数 含义
$pics 图片,多张使用逗号分隔
type 1是单张需要默认;2是多张;3是单张不需要默认;4多张中取一张有默认
  1. handle_set_pic($pics, $type = 1) 生成不带域名的地址
参数 含义
$pics 图片,多张使用逗号分隔
type 1是单张;2是多张
  1. handle_set_content($content) 生成不带域名的富文本
参数 含义
content 富文本内容
  1. handle_get_content($content = null) 生成带域名的富文本
参数 含义
content 富文本内容
  1. handle_get_num($num = null) 生成带w的数字
参数 含义
num 数字
  1. handle_set_num($num) 转换成数字
参数 含义
num 数字
  1. generate_room_num($fromId, $toId) 生成聊天房间号
参数 含义
fromID 发送者ID
toID 接受者ID
  1. result($data = null, $code, $msg = '操作成功', $url = null)

All versions of tp6-helper with dependencies

PHP Build Version
Package Version
Requires topthink/framework Version ^6.0.0
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 leruge/tp6-helper contains the following files

Loading the files please wait ....