Download the PHP package taylanunutmaz/agora-token-builder without Composer

On this page you can find all versions of the php package taylanunutmaz/agora-token-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package agora-token-builder

agora-token-builder

(Unofficial) Token builder for agora.io

Product Versions that support tokens
RTC SDK The Native SDK: v2.1.0 or later The Web SDK: v2.4.0 or later * Third-party framework SDKs: All versions
On-premise Recording SDK v2.1.0 or later
Cloud Recording No version requirement
Interactive Gaming SDK v2.2.0 or later

Insall

Usage

RTC Token

Token with int uid

Token with user account

RTM Token

API Reference

Parameter Description
$appID The App ID of your Agora project
$appCertificate The App Certificate of your Agora project.
$channelName The unique channel name for the Agora RTC session in the string format. The string length must be less than 64 bytes. Supported character scopes are: All lowercase English letters: a to z. All uppercase English letters: A to Z. All numeric characters: 0 to 9. The space character. * Punctuation characters and other symbols, including: "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", " {", "}", "|", "~", ",".
$uid The user ID. A 32-bit unsigned integer with a value range from 1 to (2^32 - 1). It must be unique. Set uid as 0, if you do not want to authenticate the user ID, that is, any uid from the app client can join the channel or log onto the service system.
$uidStr The username of user. This value must be string.
$role The privilege of the user: Role_Publisher(1): (Default) The user has the privilege of publishing streams. Role_Subscriber(2): The user does not have the privilege of publishing streams.
$privilegeExpiredTs The Unix timestamp (s) when the token expires, represented by the sum of the current timestamp and the valid time of the token. For example, if you set privilegeExpiredTs as the current timestamp plus 600 seconds, the token expires in 10 minutes. A token is valid for 24 hours at most. If you set this parameter as 0 or a period longer than 24 hours, the token is valid for 24 hours.

LICENSE

MIT


All versions of agora-token-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-json Version >=1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package taylanunutmaz/agora-token-builder contains the following files

Loading the files please wait ....