PHPackages                             leegoway/yii2-uic - 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. [Framework](/categories/framework)
4. /
5. leegoway/yii2-uic

ActiveYii2-extension[Framework](/categories/framework)

leegoway/yii2-uic
=================

The uic extension for Yii2 framework

226PHP

Since Apr 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/leegoway/yii2-uic)[ Packagist](https://packagist.org/packages/leegoway/yii2-uic)[ RSS](/packages/leegoway-yii2-uic/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-uic
========

[](#yii2-uic)

User center extension for Yii2 framework

包含功能：

- \[登录\] 接入用户中心的单点登录
- \[权限校验\] 接入用户中心的权限校验

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/daixianceng/yii2-uic/blob/master/composer.json) for this extension's requirements and dependencies.

To install, either run

```
$ php composer.phar require leegoway/yii2-uic "*"

```

or add

```
"leegoway/yii2-uic": "*"

```

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

Usage
-----

[](#usage)

```
return [
    'components' => [
        'uicAuther' => [
            'class' => 'leegoway\uic\Auther',
            'domain' => 'autops.corp.elong.com',//cookie的domain属性
            'path' => '/',//cookie的路径
            'expire' => 7200 //超时时间
        ]
    ],
];
```

then in your controller which need auth, then add the following code:

```
use leegoway\uic\UicAuthFacade;

...
use UicAuthFacade;
```

Secondly, you can check permission like the following code:

```
Yii::$app->uicAuther->checkPermission($permissionId, $organizationId, [$username]); //$username default current login username
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/48a1b11cecfc6371c2ca6fa10be4b7f87172c46a004c1ba5ef74e4f5e6c551ad?d=identicon)[leegoway](/maintainers/leegoway)

---

Top Contributors

[![leegoway](https://avatars.githubusercontent.com/u/16970488?v=4)](https://github.com/leegoway "leegoway (19 commits)")

---

Tags

uicyii2-frameworkyii2-uic

### Embed Badge

![Health badge](/badges/leegoway-yii2-uic/health.svg)

```
[![Health](https://phpackages.com/badges/leegoway-yii2-uic/health.svg)](https://phpackages.com/packages/leegoway-yii2-uic)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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