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

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

phalapi/auth
============

基于phalapi2的auth扩展

27375[2 PRs](https://github.com/twodayw/auth/pulls)PHP

Since Aug 19Pushed 4y agoCompare

[ Source](https://github.com/twodayw/auth)[ Packagist](https://packagist.org/packages/phalapi/auth)[ RSS](/packages/phalapi-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

基于Phalapi2的Auth扩展
=================

[](#基于phalapi2的auth扩展)

描述
--

[](#描述)

基于Phalapi2的Auth扩展,从phalapi1移植

附上:

项目GitHub地址:[https://github.com/twodayw/auth.git](https://github.com/twodayw/auth.git "项目Git地址")

安装PhalApi2-Auth
---------------

[](#安装phalapi2-auth)

在项目的composer.json文件中，添加：

```
{
    "require": {
        "phalapi/auth": "dev-master"
    }
}

```

配置好后，执行composer update更新操作即可。

使用方法
----

[](#使用方法)

具体信息可浏览Phalapi的文档：[Auth权限扩展使用文档](https://gitee.com/dogstar/PhalApi-Library/wikis/Auth-%E6%9D%83%E9%99%90%E6%89%A9%E5%B1%95%E4%BD%BF%E7%94%A8%E6%96%87%E6%A1%A3 "Auth权限扩展使用文档")

**如果大家有更好的建议可以私聊或加入到PhalApi大家庭中前来一同维护PhalApi****注:笔者能力有限有说的不对的地方希望大家能够指出,也希望多多交流!**

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d70b1236f8f67d96ba3da4ba88889faf2837ff8f7ab62acc54fe6cb4992c87?d=identicon)[dogstarhuang](/maintainers/dogstarhuang)

---

Top Contributors

[![twodayw](https://avatars.githubusercontent.com/u/24267914?v=4)](https://github.com/twodayw "twodayw (1 commits)")[![yinzhijun-cn](https://avatars.githubusercontent.com/u/25472301?v=4)](https://github.com/yinzhijun-cn "yinzhijun-cn (1 commits)")

### Embed Badge

![Health badge](/badges/phalapi-auth/health.svg)

```
[![Health](https://phpackages.com/badges/phalapi-auth/health.svg)](https://phpackages.com/packages/phalapi-auth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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