PHPackages                             richard8768/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. richard8768/hyperf-auth

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

richard8768/hyperf-auth
=======================

hyperf 的 auth 组件

1.0(1mo ago)01↓50%1MITPHPPHP &gt;=8.2

Since Jun 11Pushed 1mo agoCompare

[ Source](https://github.com/richard8768/hyperf-auth)[ Packagist](https://packagist.org/packages/richard8768/hyperf-auth)[ RSS](/packages/richard8768-hyperf-auth/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (19)Versions (3)Used By (1)

richard8768/hyperf-auth
=======================

[](#richard8768hyperf-auth)

hyperf 的 auth 组件，目前支持 jwt、session、sso 驱动。用户可以自行扩展。
本组件参考了 laravel 的 auth 组件设计，使用体验大体和 laravel 的 auth 差不多。

支持的验证方式
-------

[](#支持的验证方式)

- session
- jwt
- sso （单点登录，继承自jwt，需要 hyperf/redis，支持多客户端）

> 任何问题请加QQ群提问：873213948

安装 - install
------------

[](#安装---install)

```
$ composer require richard8768/hyperf-auth
```

> hyperf 1.1 请使用 ^v1.0 版本

配置 - configuration
------------------

[](#配置---configuration)

使用 `Qbhy\HyperfAuth\AuthExceptionHandler` ，此步骤可选，开发者可以自行捕捉 `AuthException` 和 `JWTException` 进行处理

```
