onix-systems-php / hyperf-auth
An authentication extension for an application
Installs: 1 667
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:extension
Requires
- php: >=8.1
- ext-json: *
- ext-openssl: *
- 96qbhy/hyperf-auth: ^3.1
- hyperf/contract: ^3.1
- hyperf/guzzle: ^3.1
- hyperf/logger: ^3.1
- hyperf/session: ^3.1
- league/oauth1-client: ^1.0
- onix-systems-php/hyperf-actions-log: >=1.2
- onix-systems-php/hyperf-core: >=1.2
- onix-systems-php/hyperf-socialite: ^1.2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: >=7.0
- swoole/ide-helper: ^4.5|^5.0
Suggests
- swow/swow: Required to create swow components.
This package is auto-updated.
Last update: 2025-02-15 18:07:24 UTC
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.