firecms-ext/auth
Composer 安装命令:
composer require firecms-ext/auth
包简介
hyperf 扩展:用户登录认证
README 文档
README
# 登录授权 依赖安装 composer require firecms-ext/auth # 发布配置(配置、数据迁移、用户模型) php bin/hyperf.php vendor:publish firecms-ext/auth # 密码加密 依赖安装 composer require firecms-ext/hashing # 发布配置 php bin/hyperf.php vendor:publish firecms-ext/hashing # JWT 登录扩展 依赖安装 composer require firecms-ext/jwt # 生成(JWT)签名 Token 令牌 私钥和公钥 php bin/hyperf.php gen:jwt-keypair # 生成(JWT)签名 Token 令牌 密钥 php bin/hyperf.php gen:jwt-secret
函数列表
# 认证助手 function auth(?string $guard = null): GuardInterface # 用户登录 function attempt(array $credentials, ?string $guard = null): bool # 用户登录 function login(AuthenticateInterface $user, ?string $guard = null): bool # 注销登录 function logout(): void
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-31