定制 onix-systems-php/hyperf-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-28