onix-systems-php/hyperf-auth
最新稳定版本:v1.2.3
Composer 安装命令:
composer require onix-systems-php/hyperf-auth
包简介
An authentication extension for an application
README 文档
README
Includes the following classes:
- Contract:
- AssignSocialiteAvatarService;
- Authenticatable;
- AuthenticatableProvider;
- AuthenticatableRepository;
- CreateSocialiteUserService;
- TokenGuard;
- TokenGuardProvider;
- Controller:
- AuthController;
- AuthSocialiteController;
- WebSocketController;
- DTO:
- AuthTokensDTO;
- LoginDTO;
- SocialiteHandlerDTO;
- UserSocialiteDTO;
- Guards:
- JwtGuard.
- Middleware:
- SessionMiddleware;
- Model:
- UserSocialite;
- Repository:
- UserSocialiteRepository;
- Resource:
- ResourceAuthToken;
- ResourceLoginLink;
- ResourceSocial;
- Service:
- DeleteSocialiteService;
- GetSocialiteLoginLinkService;
- LoginUserService;
- LogoutUserService;
- PrepareSocialiteProviderService;
- RefreshTokenService;
- SocialiteHandlerService;
- AuthManager;
- Session;
- SessionManager.
Install:
composer require onix-systems-php/hyperf-auth
Publish config and database migrations:
php bin/hyperf.php vendor:publish onix-systems-php/hyperf-auth
Import auth routes:
require_once './vendor/onix-systems-php/hyperf-auth/publish/routes.php';
Socket.io controller
You can import ws_routes, use WebSocketController directly and place logic to another controller,
but it is reasonable to extend WebSocketController instead.
统计信息
- 总下载量: 1.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-28