PHPackages                             easelify/xiaoet - 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. easelify/xiaoet

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

easelify/xiaoet
===============

小鹅通云服务PHPSDK

1.0.2(5y ago)4401BSD-3-ClausePHPPHP &gt;=7.0.0

Since Jul 21Pushed 5y agoCompare

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

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

小鹅通云服务PHPSDK
============

[](#小鹅通云服务phpsdk)

官方文档 [https://api-doc.xiaoe-tech.com/index.php?s=/2&amp;page\_id=420](https://api-doc.xiaoe-tech.com/index.php?s=/2&page_id=420)

通过Composer安装
------------

[](#通过composer安装)

```
composer require easelify/xiaoet

```

国内用户建议使用[阿里云的Composer镜像](https://developer.aliyun.com/composer)下载速度快，本项目默认也是使用该镜像！

使用范例
----

[](#使用范例)

```
use xiaoet\Client;
use xiaoet\request\AccessTokenRequest;
use xiaoet\request\UserInfoGetRequest;

// 创建 Client 对象
$config = [
    'app_id' => 'your app id',
    'client_id' => 'your client id',
    'app_secret' => 'your app secret',
];
$client = new Client($config);

// 获取 access token
$req = new AccessTokenRequest();
$req->setAppId($config['app_id']);
$req->setClientId($config['client_id']);
$req->setSecretKey($config['app_secret']);
$rs = $client->execute($req);

$accessToken = '';
if ($rs['code'] == 0) {
    // 可储存$accessToken到数据库或文件备用
    // 根据 expires_in 字段做统一获取
    $accessToken = $rs['data']['access_token'];
} else {
    throw new \Exception('Access Token 获取失败: ' . $rs['msg']);
}

// 获取用户信息
$req = new UserInfoGetRequest();
$req->setUserId('u_5ec2a39b6857a_vG4siBRLLy');
$rs = $client->execute($req, $accessToken);
print_r($rs);
```

更多范例详见 ./tests 目录

交流
--

[](#交流)

欢迎关注公众号：不用上班的程序员

[![qrcode](docs/mp_qrcode.jpg)](docs/mp_qrcode.jpg)

Licensing
---------

[](#licensing)

Licensed under the 3-clause BSD license. See the [LICENSE](LICENSE) file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~9 days

Total

3

Last Release

2103d ago

### Community

Maintainers

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

---

Top Contributors

[![easelify](https://avatars.githubusercontent.com/u/8364802?v=4)](https://github.com/easelify "easelify (10 commits)")

---

Tags

composerphpsdkxiaoe-techxiaoet

### Embed Badge

![Health badge](/badges/easelify-xiaoet/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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