PHPackages                             onix-systems-php/hyperf-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. onix-systems-php/hyperf-auth

ActiveExtension[Authentication &amp; Authorization](/categories/authentication)

onix-systems-php/hyperf-auth
============================

An authentication extension for an application

v1.2.3(2y ago)11.8k1MITPHPPHP &gt;=8.1

Since Dec 28Pushed 2y ago3 watchersCompare

[ Source](https://github.com/onix-systems-php/hyperf-auth)[ Packagist](https://packagist.org/packages/onix-systems-php/hyperf-auth)[ RSS](/packages/onix-systems-php-hyperf-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (39)Used By (1)

Hyperf-auth component
=====================

[](#hyperf-auth-component)

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
--------------------

[](#socketio-controller)

You can import `ws_routes`, use `WebSocketController` directly and place logic to another controller, but it is reasonable to extend `WebSocketController` instead.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~87 days

Total

38

Last Release

823d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v1.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e1c2e991197c9603eb160eb27e1be423eb683ee2eed293288993936444c20bb?d=identicon)[onix-systems-php](/maintainers/onix-systems-php)

---

Top Contributors

[![DenisOnix](https://avatars.githubusercontent.com/u/90691028?v=4)](https://github.com/DenisOnix "DenisOnix (7 commits)")[![vmikhav](https://avatars.githubusercontent.com/u/11061723?v=4)](https://github.com/vmikhav "vmikhav (4 commits)")[![alexsyvolap](https://avatars.githubusercontent.com/u/80973788?v=4)](https://github.com/alexsyvolap "alexsyvolap (3 commits)")[![serhiimoroko](https://avatars.githubusercontent.com/u/109082130?v=4)](https://github.com/serhiimoroko "serhiimoroko (3 commits)")

---

Tags

phphyperf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/onix-systems-php-hyperf-auth/health.svg)

```
[![Health](https://phpackages.com/badges/onix-systems-php-hyperf-auth/health.svg)](https://phpackages.com/packages/onix-systems-php-hyperf-auth)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
