PHPackages                             jiyang-soft/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. jiyang-soft/agora

ActiveLibrary[API Development](/categories/api)

jiyang-soft/agora
=================

agora token 和 接口请求

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

Since Oct 8Pushed 3y agoCompare

[ Source](https://github.com/jiyang666/agora)[ Packagist](https://packagist.org/packages/jiyang-soft/agora)[ RSS](/packages/jiyang-soft-agora/feed)WikiDiscussions main Synced yesterday

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

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

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

### 使用

[](#使用)

```
composer require jiyang-soft/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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

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

1364d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/879371eda09d70f6881d45c9c6c38001d9ec896a1cf76f948ce19eb6f16812fa?d=identicon)[jiyang](/maintainers/jiyang)

---

Top Contributors

[![wuwu123](https://avatars.githubusercontent.com/u/9794138?v=4)](https://github.com/wuwu123 "wuwu123 (9 commits)")[![jiyang666](https://avatars.githubusercontent.com/u/20931112?v=4)](https://github.com/jiyang666 "jiyang666 (2 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/jiyang-soft-agora/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

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

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[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)

PHPackages © 2026

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