PHPackages                             tao2581/ucclient - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tao2581/ucclient

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tao2581/ucclient
================

uc\_client for Laravel5, Based on MyController/ucclient

1.0.4(8y ago)05191MITPHPPHP &gt;=5.5.9

Since Sep 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tao2581/ucclient)[ Packagist](https://packagist.org/packages/tao2581/ucclient)[ Docs](https://github.com/mycontroller/ucclient)[ RSS](/packages/tao2581-ucclient/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

UCClient for Laravel5
---------------------

[](#ucclient-for-laravel5)

本项目基于 [MyController/ucclient](https://github.com/MyController/ucclient) 做了一点儿微小的升级，感谢 wehnhew ！

增加注册账号时同步额外用户属性
---------------

[](#增加注册账号时同步额外用户属性)

- role 用户角色
- domain\_user 域用户名
- meta json 格式自定义信息 如： {student\_number: 1002} 学号

### 安装

[](#安装)

```
composer require mycontroller/ucclient
```

配置
--

[](#配置)

在 `/config/app.php` 文件中找到 `providers` 键，

```
'providers' => [
  ...
  MyController\UCClient\UCenterService\UCenterServiceProvider::class,
  ...
];
```

在 `/config/app.php` 文件中找到 `aliases` 键，

```
'aliases' => [
  ...
  'UCClient' => MyController\UCClient\Facades\UCClientFacade::class,
  ...
];
```

如果想自定义配置, 可以运行以下命令将配置文件复制到 `/config/uc-client.php` , 之后就可以方便的自定义了

```
php artisan config:publish
```

使用
--

[](#使用)

例如：获取用户名为wen的信息

```
$result = UCClient::execute('uc_get_user',['wen']);
dd($result);
```

关于SSO登录注销
---------

[](#关于sso登录注销)

您需要自己实现 UCenterSSOContract 接口, 并将 UCenterSSOContract的具体实现类 绑定至 UCenterSSOContract 接口。

例如可以实现:

```
app->bind(
    \MyController\UCClient\Contracts\UCenterSSOContract::class,
    \App\MyUCenterSSO::class
);
```

避免开启了 barryvdh/laravel-debugbar 插件后影响 UCenterAPI 的输出结果
------------------------------------------------------

[](#避免开启了-barryvdhlaravel-debugbar-插件后影响-ucenterapi-的输出结果)

您需要自己实现 UCenterAPIExecuteFilterContract 接口, 并将 UCenterAPIExecuteFilterContract的具体实现类 绑定至 UCenterAPIExecuteFilterContract 接口。

例如可以实现:

```
app->bind(
    \MyController\UCClient\Contracts\UCenterAPIExecuteFilterContract::class,
    \App\MyUCenterAPIExecuteFilter::class
);
```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~106 days

Total

5

Last Release

3116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8971f4452718829dfbbd58f3cfb9515cf59c6a6c5d4f365f05ebd64a2487b04?d=identicon)[tao2581](/maintainers/tao2581)

---

Top Contributors

[![tao2581](https://avatars.githubusercontent.com/u/3303524?v=4)](https://github.com/tao2581 "tao2581 (14 commits)")[![MyController](https://avatars.githubusercontent.com/u/6927957?v=4)](https://github.com/MyController "MyController (6 commits)")

---

Tags

laravel5ucenteruc\_client

### Embed Badge

![Health badge](/badges/tao2581-ucclient/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[laravellux/html

HTML and Form Builders for the Laravel Framework

35239.2k3](/packages/laravellux-html)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)[leantony/laravel-grid

A grid view for laravel, inspired by the yii2 grid widget

9060.2k](/packages/leantony-laravel-grid)

PHPackages © 2026

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