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.

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 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')可以访问到

方法说明

  1. 字符串可逆加密

    • 用法

    • 配置
      可以配置加密和解密的秘钥,不配置默认为ykmaiz,例如:
  2. 对数字ID进行追加长度的混淆类

    • 用法

    • 配置
      可以配置追加的长度,不配置默认为5,例如:
  3. 时间助手类
    • 用法(可以传入任何格式的日期或时间戳)

特别说明: 所有时间的方法都可以传入任意格式的时间或者时间戳, 但是有一点请注意 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
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 zjkal/tp-helper contains the following files

Loading the files please wait ....