Download the PHP package sungmee/laravel-hashid without Composer
On this page you can find all versions of the php package sungmee/laravel-hashid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sungmee/laravel-hashid
More information about sungmee/laravel-hashid
Files in sungmee/laravel-hashid
Download sungmee/laravel-hashid
More information about sungmee/laravel-hashid
Files in sungmee/laravel-hashid
Vendor sungmee
Package laravel-hashid
Short Description 为 Laravel 量身定制的类似 Youtube 上的 ID(数字)加密解密扩展包。
License MIT
Homepage https://github.com/sungmee/laravel-hashid
Package laravel-hashid
Short Description 为 Laravel 量身定制的类似 Youtube 上的 ID(数字)加密解密扩展包。
License MIT
Homepage https://github.com/sungmee/laravel-hashid
Please rate this library. Is it a good library?
Informations about the package laravel-hashid
LARAVEL HASHID
为 Laravel 量身定制的类似 Youtube 上的 ID(数字)加密解密扩展包。【不使用 bcpow() 函数】
配置扩展包
在项目根目录下的 .env 文件中加入以下内容(如果保持默认,则不需要加入):
加密后的字符串长度:
HASHID_LENGTH=8
加密盐值,必须为数字类型:
HASHID_SALT=3.14159265359
加密字典,即为 a-z,A-Z,0-9 62个字符打乱后的字符串。安装成功后,可以用 dictionary()
方法生成字典字符串:
HASHID_DICTIONARY=hK2VOPI1UHkF6lj9n8L73JgbtSpyAeYrZcwDWqdB0XNGazsv4R5mfExiouTMQC
Laravel 5.5 以上版本到此为止已经配置完毕。
Laravel 5.5 以下版本还要继续操作:
然后在 Laravel 配置文件 config/app.php
中加入:
使用示例:
更简单的使用方法:
All versions of laravel-hashid with dependencies
PHP Build Version
Package Version
The package sungmee/laravel-hashid contains the following files
Loading the files please wait ....