PHP code example of tencent / tls-sig-api-v2

1. Go to this page and download the library: Download tencent/tls-sig-api-v2 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tencent / tls-sig-api-v2 example snippets

 php


_once "../src/TLSSigAPIv2.php"; // 源码集成使用相对路径 

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