Skip to content

This PHP project implements Tencent-RTC's UserSig authentication

License

Notifications You must be signed in to change notification settings

Tencent-RTC/tls-sig-api-v2-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This PHP project implements Tencent-RTC's UserSig authentication, providing a secure server-side method for generating signatures to protect the keys from leakage.

Integration

You can use composer or source code integration.

composer integration

{
  "require": {
    "tencent/tls-sig-api-v2": "1.0"
  }
}

source code integration

Download TLSSigAPIv2.php to the project.

Usage

<?php

require 'vendor/autoload.php'
// require_once "../src/TLSSigAPIv2.php"; // Source code integration uses relative paths

$api = new \Tencent\TLSSigAPIv2(1400000000, '5bd2850fff3ecb11d7c805251c51ee463a25727bddc2385f3fa8bfee1bb93b5e');
$sig = $api->genUserSig('xiaojun');
echo $sig . "\n";

About

This PHP project implements Tencent-RTC's UserSig authentication

Resources

License

Stars

Watchers

Forks

Languages