luffyzhao / hyperf-tools
There is no license information available for the latest version (v1.45) of this package.
v1.45
2022-06-06 09:15 UTC
Requires
- php: >=7.3
- gregwar/captcha: ^1.1
- hyperf-ext/auth: ^2.2
- hyperf-ext/hashing: ^2.2
- hyperf-ext/jwt: ^2.2
- hyperf/cache: ^2.2
- hyperf/command: >=2
- hyperf/constants: ^2.2
- hyperf/db-connection: ^2.2
- hyperf/devtool: ^2.2
- hyperf/http-server: >=2
- hyperf/redis: ^2.2
- hyperf/validation: ^2.2
- phpoffice/phpspreadsheet: ^1.23
- ramsey/uuid: ^4.3
This package is auto-updated.
Last update: 2026-06-06 18:05:35 UTC
README
安装
composer require luffyzhao/hyperf-tools
发布配置文件
php bin/hyperf.php vendor:publish luffyzhao/hyperf-tools
管理模块
php bin/hyperf.php gen:repository
php bin/hyperf.php gen:search
php bin/hyperf.php gen:service
jwt 配置
php bin/hyperf.php gen:jwt-secret php bin/hyperf.php gen:jwt-keypair
.env 文件
JWT_BLACKLIST_GRACE_PERIOD=5 设置宽限期(以秒为单位)以防止并发请求失败。
JWT_TTL=3600 指定令牌有效的时长(以秒为单位)。默认为 1 小时