1. Go to this page and download the library: Download zjkal/tp-helper library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zjkal / tp-helper example snippets
//config.php
return [
'helper.name'=>'value',
];
//helper.php
return [
'name'=>'value',
];
use al\helper\Encoder;
//加密方法
Encoder::encode('raw string');
//解密方法
Encoder::decode('encoded string');
'encoder-key'=> 'ykmaiz'
use al\helper\Id;
//给ID添加混淆后缀
Id::encode('raw id');
//验证混淆后缀,并还原ID
Id::decode('encoded id');