PHPackages                             yanlong-li/tencent-cls-pb - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. yanlong-li/tencent-cls-pb

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

yanlong-li/tencent-cls-pb
=========================

腾讯云日志服务,tencent-cloud cls,cloud log service,基于PHP语言的可用的CLS结构化日志PB日志生成。LogGroupList 的 PB 格式打包内容,只包含结构化日志的生成，不包含完整的cls服务功能。附加签名代码。

1.0.1(5y ago)013MITPHPPHP &gt;=5.5.0

Since Dec 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yanlong-li/tencent-cls-pb-php)[ Packagist](https://packagist.org/packages/yanlong-li/tencent-cls-pb)[ Docs](https://cloud.tencent.com/document/product/614/16873)[ RSS](/packages/yanlong-li-tencent-cls-pb/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

腾讯云 CLS PB 格式打包
===============

[](#腾讯云-cls-pb-格式打包)

生成PB格式打包数据

附加签名代码

[案例](demo/simple_example.php)

更多细节请参考腾讯云CLS[官方文档](https://cloud.tencent.com/document/product/614/16873)

代码说明
----

[](#代码说明)

src/Cls、src/GPBMetadata 是由 protobuf 3+ 版本生成，腾讯官方原版是 2.6+ 版本，3+ 生成后的代码不支持可选参数和必填参数， 需要开发者自行控制。目录大驼峰命名也是直接生成的，未做改变。

src/GPBMetadate/Cls.php 中的数据经过了转码处理，原文不转码无法通过代码仓库提交传输。

src/Sign.php 内容是下载的腾讯云官方提供的 [签名计算 demo](http://signature-1254139626.file.myqcloud.com/signature.zip?_ga=1.30193663.1374220542.1605231743)未作改动。

cls日志常见问题
---------

[](#cls日志常见问题)

### host

[](#host)

请参考 注意非腾讯云服务器请选择选择外网地域，否则 dns 无法解析域名。

感谢
--

[](#感谢)

代码上传后出现损坏，经检查为 GPBMetadate/Cls.php 中含有 特殊数据，根据  的方法，将特殊数据转换为二进制字符串再解码解决无法传输问题。

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

1960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bceb058b66ce0ec7be2d841d6fedb72ad0ab12abbd76ff5382b66599161542d8?d=identicon)[yanlong-li](/maintainers/yanlong-li)

---

Top Contributors

[![yanlong-li](https://avatars.githubusercontent.com/u/20129263?v=4)](https://github.com/yanlong-li "yanlong-li (2 commits)")

---

Tags

logcloudsignservicetencentpbclstencent-cloudLogGroupList 的 PB 格式打包内容

### Embed Badge

![Health badge](/badges/yanlong-li-tencent-cls-pb/health.svg)

```
[![Health](https://phpackages.com/badges/yanlong-li-tencent-cls-pb/health.svg)](https://phpackages.com/packages/yanlong-li-tencent-cls-pb)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)

PHPackages © 2026

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