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

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

lengbin/hyperf-auth
===================

hyperf auth

3.0.x-dev(2y ago)71.6k2[1 issues](https://github.com/ice-leng/hyperf-auth/issues)1MITPHPPHP &gt;=8.0

Since May 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ice-leng/hyperf-auth)[ Packagist](https://packagist.org/packages/lengbin/hyperf-auth)[ RSS](/packages/lengbin-hyperf-auth/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

 [ ![](https://camo.githubusercontent.com/c6b942122d0a55df522901b30c6f0b467688ed244a0225113157462fc2249d50/68747470733a2f2f6879706572662e6f73732d636e2d68616e677a686f752e616c6979756e63732e636f6d2f6879706572662e706e67) ](https://hyperf.io/)

Hyperf Auth
===========

[](#hyperf-auth)

If You Like This Please Give Me Star

Install
-------

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require lengbin/hyperf-auth

```

or add

```
"lengbin/hyperf-auth": "*"

```

to the require section of your `composer.json` file.

Configs
-------

[](#configs)

```
    // 配置 /config/autoload/auth.php
    return [
        'log' => [
            'enable' => true,
            'group'  => 'default',
        ],
        // 是否单点登录
        'oss' => false,
        // 测试 key
        'x-test-flag' => 1
    ];
```

Publish
-------

[](#publish)

```

php ./bin/hyperf.php vendor:publish lengbin/hyperf-auth
```

DemoMiddleware
--------------

[](#demomiddleware)

```
