PHPackages                             cjrb/dawuhan-php-usercenter-sdk - 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. cjrb/dawuhan-php-usercenter-sdk

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

cjrb/dawuhan-php-usercenter-sdk
===============================

Cjrb User Center SDK for PHP, PHP&gt;=5.4.0

v1.2.1(3y ago)09MITPHPPHP &gt;=5.4

Since Jul 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/liguidong/usercenter-php-sdk)[ Packagist](https://packagist.org/packages/cjrb/dawuhan-php-usercenter-sdk)[ RSS](/packages/cjrb-dawuhan-php-usercenter-sdk/feed)WikiDiscussions master Synced 1mo ago

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

[![logo.png](https://camo.githubusercontent.com/9e232c475f1165c1af5aabbb9d83250aab5dda138c87da459367587ebae4abed/68747470733a2f2f73322e6c6f6c692e6e65742f323032322f30382f30352f4e523368766a6b3741324f493166442e706e67)](https://camo.githubusercontent.com/9e232c475f1165c1af5aabbb9d83250aab5dda138c87da459367587ebae4abed/68747470733a2f2f73322e6c6f6c692e6e65742f323032322f30382f30352f4e523368766a6b3741324f493166442e706e67)

CJRB用户中心
========

[](#cjrb用户中心)

📦 一个 PHP 用户中心 SDK，用于集团内各平台用户信息互联互通。

[![php](https://camo.githubusercontent.com/032b2cf98a9adb5dc43111c2a021f60c1b7b49e954695cf35bab9374d8d35a30/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e342d627269676874677265656e)](https://camo.githubusercontent.com/032b2cf98a9adb5dc43111c2a021f60c1b7b49e954695cf35bab9374d8d35a30/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e342d627269676874677265656e)[![composer](https://camo.githubusercontent.com/90910565d6ce7cfe3e8b8a671c71bdcb4b40248c09d99960c94a849da5c0d8e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d312e312e302d627269676874677265656e)](https://camo.githubusercontent.com/90910565d6ce7cfe3e8b8a671c71bdcb4b40248c09d99960c94a849da5c0d8e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d312e312e302d627269676874677265656e)[![GitHub](https://camo.githubusercontent.com/029166d85f92969845201e59c3fcd8c8345556036155ff18140f6a9e796173a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/029166d85f92969845201e59c3fcd8c8345556036155ff18140f6a9e796173a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)

环境要求
----

[](#环境要求)

- PHP &gt;= 5.4.0
- [Composer](https://getcomposer.org/) &gt;= 1.1.0

安装
--

[](#安装)

此UserCenter PHP SDK 可以使用[Composer](https://getcomposer.org/)安装，执行此命令：

```
composer require cjrb/dawuhan-php-usercenter-sdk

```

开始使用
----

[](#开始使用)

> 注意：此版本的UserCenter SDK for PHP 需要PHP5.4 或更高版本

通过code获取AccessToken的简单示例：

```
$response = (new UserUtil($baseUrl, $appKey, $appSecret))->getToken('code');
print_r($response);
```

更多接入信息请查阅 [接口文档](https://thoughts.aliyun.com/share/62d4b2b11e1eca001b40834c#title=%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3) ，SDK更多使用方法请查看 [测试用例](/tests/utils/TestUtil.php)

SDK功能完成
-------

[](#sdk功能完成)

- 用户

    - 获取AccessToken
    - 刷新Token
    - 校验Token
    - 获取用户信息
    - 获取用户身份信息
    - 批量同步用户信息
    - 修改密码
    - 换绑手机
    - 换绑邮箱
    - 修改用户资料
    - 密码加密
- 订单

    - 获取订单列表
    - 新增订单
    - 更新订单
- 其他

    - sign生成

License
-------

[](#license)

- [MIT](/LICENSE.md)

安全漏洞
----

[](#安全漏洞)

如果您发现安全问题，请直接通过 [liguidong94@gmail.com](mailto:liguidong94@gmail) 联系维护人员。

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~7 days

Total

5

Last Release

1356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ed9f6702ed45006760f057a64005e99aa0a3413a192fd583948b52c6d23316f?d=identicon)[liguidong](/maintainers/liguidong)

---

Top Contributors

[![liguidong](https://avatars.githubusercontent.com/u/17565771?v=4)](https://github.com/liguidong "liguidong (14 commits)")

### Embed Badge

![Health badge](/badges/cjrb-dawuhan-php-usercenter-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/cjrb-dawuhan-php-usercenter-sdk/health.svg)](https://phpackages.com/packages/cjrb-dawuhan-php-usercenter-sdk)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[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)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)

PHPackages © 2026

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