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

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

thinksvip/xc-auth
=================

xc-auth, yii2

v1.1.0(2y ago)0657Apache-2.0PHPPHP &gt;=7.4

Since May 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thinksvip/XC-Auth)[ Packagist](https://packagist.org/packages/thinksvip/xc-auth)[ RSS](/packages/thinksvip-xc-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

xc-auth授权
=========

[](#xc-auth授权)

调用示例
----

[](#调用示例)

```
// 检测是否登陆
\Xc\Auth\XcAuth::login()->isLogin();
// 获取所有用户
\Xc\Auth\XcAuth::user()->getAllUsers();
// 获取数据权限
\Xc\Auth\XcAuth::perm()->data->get();
```

jwt配置文件参考
---------

[](#jwt配置文件参考)

```
return [
    'jwt' => [
        'key' => '',// 密钥
        'alg' => '',// 加密方式
        'iss' => '',// 签发者，可选
        'aud' => '',// 接收方，可选
        'leeway' => 'int类型(单位:s)',// 留余时间
        'type' => 'int类型',// 类型,固定值
    ],
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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.

###  Release Activity

Cadence

Every ~6 days

Recently: every ~15 days

Total

11

Last Release

1026d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e7046d7c428a426b16e15e5eddc4c432781ec8037e2ddde5ac277548b8f4b82?d=identicon)[thinksvip](/maintainers/thinksvip)

---

Top Contributors

[![2166909366](https://avatars.githubusercontent.com/u/31613551?v=4)](https://github.com/2166909366 "2166909366 (9 commits)")[![thinksvip](https://avatars.githubusercontent.com/u/23026450?v=4)](https://github.com/thinksvip "thinksvip (1 commits)")

### Embed Badge

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

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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