PHPackages                             monyxie/agora-token-builder - 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. monyxie/agora-token-builder

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

monyxie/agora-token-builder
===========================

Agora Token Builder

v0.1(6y ago)04191MITPHP

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/monyxie/agora-token-builder)[ Packagist](https://packagist.org/packages/monyxie/agora-token-builder)[ RSS](/packages/monyxie-agora-token-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

agora-token-builder
===================

[](#agora-token-builder)

Agora Token Builder generates tokens for Agora Client SDKs. This library is a cleaned-up and composer-ready version of the [official PHP SDK](https://github.com/AgoraIO/Tools/tree/master/DynamicKey/AgoraDynamicKey/php).

[![Build Status](https://camo.githubusercontent.com/5b16ab268e5f97447ef8768895fbe6d8d739813aaaccd705e0a2421e644d98c6/68747470733a2f2f7472617669732d63692e6f72672f6d6f6e797869652f61676f72612d746f6b656e2d6275696c6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/monyxie/agora-token-builder)

Installation
------------

[](#installation)

```
# composer require monyxie/agora-token-builder

```

Usage
-----

[](#usage)

```
use Monyxie\Agora\TokenBuilder\TokenFactory;
use Monyxie\Agora\TokenBuilder\AccessControl\Role;

$appId = "your app id";
$appCertificate = "your app certificate";
$channelName = "your channel name";
$uid = 91919191; // your uid
$privileges = Role::PRIVILEGES_PUBLISHER;

$token = (new TokenFactory($appId, $appCertificate))->create($channelName, $uid, $privileges);

var_dump($token->toString());
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/706fad9ec5e62c3e3a27237aa589e3b647e375e789b45bd9bda8106ca130edfd?d=identicon)[monyxie](/maintainers/monyxie)

---

Top Contributors

[![monyxie](https://avatars.githubusercontent.com/u/703164?v=4)](https://github.com/monyxie "monyxie (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/monyxie-agora-token-builder/health.svg)

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

###  Alternatives

[razonyang/yii2-rate-limiter

Yii2 Rate Limiter

1025.0k1](/packages/razonyang-yii2-rate-limiter)

PHPackages © 2026

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