PHPackages                             tencent/tls-sig-api - 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. tencent/tls-sig-api

ActiveLibrary

tencent/tls-sig-api
===================

v1.0(8y ago)2034.9k—3.1%161MITPHPCI failing

Since Apr 10Pushed 7y ago38 watchersCompare

[ Source](https://github.com/tencentyun/tls-sig-api-php)[ Packagist](https://packagist.org/packages/tencent/tls-sig-api)[ RSS](/packages/tencent-tls-sig-api/feed)WikiDiscussions master Synced 1mo ago

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

composer 集成
-----------

[](#composer-集成)

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

调用接口
----

[](#调用接口)

### 默认过期时间

[](#默认过期时间)

```
require 'vendor/autoload.php';

$api = new Tencent\TLSSigAPI();
$api->SetAppid(140000000);
$private = file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'private_key');
$api->SetPrivateKey($private);
$sig = $api->genSig('xiaojun');
var_export($sig);
```

### 指定过期时间

[](#指定过期时间)

```
require 'vendor/autoload.php';

$api = new Tencent\TLSSigAPI();
$api->SetAppid(140000000);
$private = file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'private_key');
$api->SetPrivateKey($private);
$sig = $api->genSig('xiaojun', 24*3600*180);
var_export($sig);
```

### 源代码集成

[](#源代码集成)

```
require 'vendor/autoload.php';
```

直接上面的 `require` 语句替换为下面的

```
require "TLSSigAPI.php";
```

注意语句的路径需要随着 api 文件的存放路径而修改。

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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

2960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53ab4e3dce2951d4e0f596dd644065e653e125c8a543236d05fd874a7a449f91?d=identicon)[weijunyi](/maintainers/weijunyi)

![](https://www.gravatar.com/avatar/39c4083a1b37f9819c1ac8d93db5fde2578d327df996e2b1207d2062f8c8d123?d=identicon)[wangpeiwen](/maintainers/wangpeiwen)

---

Top Contributors

[![weijunyi](https://avatars.githubusercontent.com/u/20080172?v=4)](https://github.com/weijunyi "weijunyi (4 commits)")[![okhowang](https://avatars.githubusercontent.com/u/3352585?v=4)](https://github.com/okhowang "okhowang (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tencent-tls-sig-api/health.svg)

```
[![Health](https://phpackages.com/badges/tencent-tls-sig-api/health.svg)](https://phpackages.com/packages/tencent-tls-sig-api)
```

PHPackages © 2026

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