Download the PHP package yanlong-li/tencent-cls-pb without Composer

On this page you can find all versions of the php package yanlong-li/tencent-cls-pb. 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 tencent-cls-pb

腾讯云 CLS PB 格式打包

生成PB格式打包数据

附加签名代码

案例

更多细节请参考腾讯云CLS官方文档

代码说明

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

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

src/Sign.php 内容是下载的腾讯云官方提供的 签名计算 demo 未作改动。

cls日志常见问题

host

请参考 https://cloud.tencent.com/document/product/614/18940 注意非腾讯云服务器请选择选择外网地域,否则 dns 无法解析域名。

感谢

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


All versions of tencent-cls-pb with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
google/protobuf Version ^3.14
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 yanlong-li/tencent-cls-pb contains the following files

Loading the files please wait ...