PHPackages                             willywes/agora-sdk-php - 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. willywes/agora-sdk-php

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

willywes/agora-sdk-php
======================

Agora.io SDK PHP

v0.1.3(4y ago)1023.2k↓33.3%4[1 issues](https://github.com/Willywes/agora-sdk-php/issues)2MITPHP

Since Jan 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Willywes/agora-sdk-php)[ Packagist](https://packagist.org/packages/willywes/agora-sdk-php)[ Docs](https://github.com/willywes/agora-sdk-php)[ RSS](/packages/willywes-agora-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (2)

AgoraSDK
========

[](#agorasdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4fc00a967ff271a6b51b31c891394d910930bcab93ba4c2e465492f51bb02343/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696c6c797765732f61676f72612d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/willywes/agora-sdk-php)[![Total Downloads](https://camo.githubusercontent.com/ffa614d443103c2282839a16b5ee6a40cdce021f63ec96eb0b14b98a0d1805ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696c6c797765732f61676f72612d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/willywes/agora-sdk-php)[![Build Status](https://camo.githubusercontent.com/2e29ce1e82564921c3a0abb2ba8b4652d5045113d9e058a9feb228dbd62977e3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f77696c6c797765732f61676f72612d73646b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/willywes/agora-sdk-php)[![StyleCI](https://camo.githubusercontent.com/58bedea4732fa6c5a40df0b8bd418f7bf1ae840be3467a9f6fbb4e52275fc9f1/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332393038353532352f736869656c64)](https://styleci.io/repos/329085525)

PHP SDK Agora.io (unofficial) Token Generator

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

[](#installation)

Via Composer

```
$ composer require willywes/agora-sdk-php
```

Usage
-----

[](#usage)

```
use Willywes\AgoraSDK\RtcTokenBuilder;

class AgoraHelper
{
    public static function GetToken($user_id){

        $appID = "72fc...";
        $appCertificate = "72fc...";
        $channelName = "Test";
        $uid = $user_id;
        $uidStr = ($user_id) . '';
        $role = RtcTokenBuilder::RoleAttendee;
        $expireTimeInSeconds = 3600;
        $currentTimestamp = (new \DateTime("now", new \DateTimeZone('UTC')))->getTimestamp();
        $privilegeExpiredTs = $currentTimestamp + $expireTimeInSeconds;

        return RtcTokenBuilder::buildTokenWithUid($appID, $appCertificate, $channelName, $uid, $role, $privilegeExpiredTs);

    }
}
```

```
    $user = auth()->user();
    $agora_token = AgoraHelper::GetToken($user->id);
```

Credits
-------

[](#credits)

- [Alejandro Isla](https://github.com/willywes)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.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

Every ~157 days

Total

4

Last Release

1472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb10db2c683da7b54ef4dd41d33a46e34e3b3ab306c2d97daad9adb2b4380959?d=identicon)[Willywes](/maintainers/Willywes)

---

Top Contributors

[![Willywes](https://avatars.githubusercontent.com/u/4291325?v=4)](https://github.com/Willywes "Willywes (7 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![vishalinfyom](https://avatars.githubusercontent.com/u/33887755?v=4)](https://github.com/vishalinfyom "vishalinfyom (1 commits)")

---

Tags

phplaravelsdkAgora.ioAgora SDKAgora SDK PHP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/willywes-agora-sdk-php/health.svg)

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

###  Alternatives

[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3372.7M4](/packages/monicahq-laravel-cloudflare)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[waad/laravel-profanity-filter

Laravel Profanity Filter - Powerful PHP package for detecting, filtering, and masking profanity in multiple languages. Supports leet speak, custom word lists, case sensitivity, and seamless Laravel integration.

202.9k](/packages/waad-laravel-profanity-filter)

PHPackages © 2026

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