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 1mo ago

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

Maturity31

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

1317d 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

[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)
