Download the PHP package zjkal/tp-helper without Composer
On this page you can find all versions of the php package zjkal/tp-helper. 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 tp-helper
为了更方便大家使用,决定将时间助手函数独立为一个composer类库
https://github.com/zjkal/time-helper
请大家及时更换composer配置
分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线分割线
tp-helper
这是一个适用于Thinkphp5和Thinkphp6的助手函数库,作者将长期维护并不断完善使用率比较高的助手函数。 使用过程中发现BUG或者希望添加其他助手函数,请直接提交Issues或者直接与我联系。
通过Composer导入类库
配置说明
凡是涉及到配置项的方法, 全部使用Thinkphp的助手函数config获取的,可以在config目录下新建helper.php配置文件,也可以在config.php中直接配置,例如:
或者
原则:确保使用config('helper.name')可以访问到
方法说明
-
字符串可逆加密
-
用法
- 配置
可以配置加密和解密的秘钥,不配置默认为ykmaiz,例如:
-
-
对数字ID进行追加长度的混淆类
-
用法
- 配置
可以配置追加的长度,不配置默认为5,例如:
-
- 时间助手类
- 用法(可以传入任何格式的日期或时间戳)
特别说明: 所有时间的方法都可以传入任意格式的时间或者时间戳, 但是有一点请注意 m/d/y 或 d-m-y 格式的日期,如果分隔符是斜线(/),则使用美洲的 m/d/y 格式。如果分隔符是横杠(-)或者点(.),则使用欧洲的 d-m-y 格式。为了避免潜在的错误,您应该尽可能使用 YYYY-MM-DD 格式或其他格式.
开源协议
MIT
All versions of tp-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package zjkal/tp-helper contains the following files
Loading the files please wait ....