PHPackages                             wujie/agora - 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. [API Development](/categories/api)
4. /
5. wujie/agora

ActiveLibrary[API Development](/categories/api)

wujie/agora
===========

agora token 和 接口请求

0.4(4y ago)13542MITPHPPHP &gt;=7.1

Since May 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wuwu123/agora)[ Packagist](https://packagist.org/packages/wujie/agora)[ RSS](/packages/wujie-agora/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

声网token生成和接口管理
--------------

[](#声网token生成和接口管理)

### 使用

[](#使用)

```
composer require wujie/agora

```

### 配置文件

[](#配置文件)

```
    new \Wu\Agora\Config($_ENV['APP_ID'], $_ENV['APP_CERTIFICATE'], $_ENV['CUSTOMER_KEY'], $_ENV['CUSTOMER_SECRET']);
```

### 生成token

[](#生成token)

```
$channelName = "hdkhfdkasjhfakhf";
$uidOrAccount = "1234567";
$role = AccessToken::RoleAttendee;
$time = \Wu\Agora\Tool::time()->timestamp + 100;
$tokenModel = new \Wu\Agora\Token\TokenBuilder($this->getConfig());
$res = $tokenModel->buildToken($channelName, $uidOrAccount, $role, $time);
```

### 接口管理

[](#接口管理)

```
$model = new Project($this->getConfig());
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

Total

4

Last Release

1817d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9794138?v=4)[武杰](/maintainers/wuwu123)[@wuwu123](https://github.com/wuwu123)

---

Top Contributors

[![wuwu123](https://avatars.githubusercontent.com/u/9794138?v=4)](https://github.com/wuwu123 "wuwu123 (9 commits)")

---

Tags

phpagoraagora api

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/wujie-agora/health.svg)

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[optiosteam/payconiq-client-php

Payconiq API client library for PHP developed by Optios.

1273.4k](/packages/optiosteam-payconiq-client-php)[jeffreyhyer/alpaca-trade-api-php

PHP SDK for the Alpaca trade API

285.0k](/packages/jeffreyhyer-alpaca-trade-api-php)[afiqiqmal/parcel-track

Api Parcel Tracking API

184.1k](/packages/afiqiqmal-parcel-track)

PHPackages © 2026

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