Download the PHP package jizhi/webman-hashids without Composer
On this page you can find all versions of the php package jizhi/webman-hashids. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jizhi/webman-hashids
More information about jizhi/webman-hashids
Files in jizhi/webman-hashids
Download jizhi/webman-hashids
More information about jizhi/webman-hashids
Files in jizhi/webman-hashids
Vendor jizhi
Package webman-hashids
Short Description Webman plugin jizhi/webman-hashids
License MIT
Package webman-hashids
Short Description Webman plugin jizhi/webman-hashids
License MIT
Please rate this library. Is it a good library?
Informations about the package webman-hashids
jz-webman-hashids
https://github.com/jiaxincui/hashid 的迁移版,去除了中间件
依赖于hashids/hashids
只适用于正整数加密。
安装
配置
- 配置文件目录:config/plugin/jizhi/webman-hashids/app.php。
- 在.env文件添加配置项
HASH_ID_ALPHABET=your-key
。- 为了Hash成更安全的字符串,请手动重新生成
HASH_ID_ALPHABET
,为0-9a-zA-Z共62个字符随机排序,字符不可重复,长度为16-62,可使用以下方法生成
- 为了Hash成更安全的字符串,请手动重新生成
简单使用
包含两个辅助方法id_encode()
和id_decode()
。
在项目的任何地方均可使用这两个函数对ID进行加密或解密。
All versions of webman-hashids with dependencies
PHP Build Version
Package Version
The package jizhi/webman-hashids contains the following files
Loading the files please wait ....