dh2y / think-crypt
thinkphp5 的加密组件
1.2
2018-04-27 09:45 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-09-16 19:13:40 UTC
README
ThinkPHP5 加密组件
安装
一、执行以下命令安装
composer require dh2y/think-crypt
或者
二、使用require安装
"require": {
"dh2y/think-crypt":"*"
},
或者
三、按照psr-4标准进行autoload安装
a) 进入vendor/dh2y目录 (没有dh2y目录 mkdir dh2y)
b) git clone
c) 修改 git clone下来的项目名称为think-crypt
d) 添加下面配置
"autoload": {
"psr-4": {
"think\\crypt\\": "vendor/dh2y/think-crypt/src"
}
},
e) php composer.phar update
使用方法
此扩展直接从tp3.2迁移而来,tp5框架不自带相关加密类,具体使用方法请参考tp3.2。