PHPackages                             kydev/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kydev/wujie-agora

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

kydev/wujie-agora
=================

agora token 和 接口请求

v0.4.1(3y ago)05321MITPHPPHP &gt;=7.1

Since Aug 10Pushed 3y agoCompare

[ Source](https://github.com/kydever/agora)[ Packagist](https://packagist.org/packages/kydev/wujie-agora)[ RSS](/packages/kydev-wujie-agora/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (2)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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.8% 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

Unknown

Total

1

Last Release

1424d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8710097?v=4)[kydev](/maintainers/kydev)[@kydev](https://github.com/kydev)

---

Top Contributors

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

---

Tags

phpagoraagora api

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[lion/bundle

Lion-framework configuration and initialization package

122.3k4](/packages/lion-bundle)

PHPackages © 2026

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