Download the PHP package larva/volcengine-tls-sdk-php without Composer

On this page you can find all versions of the php package larva/volcengine-tls-sdk-php. 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 volcengine-tls-sdk-php

volcengine-tls-sdk-php

Total Downloads Latest Stable Version PHP Version

火山引擎 TLS(日志服务)PHP SDK,封装了 TLS OpenAPI 的常用接口,支持日志写入、检索、消费、项目管理等功能,并提供 Monolog 处理器集成。

环境要求

安装

快速开始

接入点地址

地域 公网接入点
华北2(北京) https://tls-cn-beijing.volces.com
华东1(上海) https://tls-cn-shanghai.volces.com
华南1(广州) https://tls-cn-guangzhou.volces.com

内网接入点将 volces.com 替换为 ivolces.com 即可,SDK 会自动识别公网/内网环境。

API 方法

项目管理

日志写入

日志检索

日志消费

分区管理

日志下载

Kafka 消费配置

通过 Kafka 协议消费日志,SDK 可直接生成连接配置:

Monolog 集成

SDK 提供了 Monolog 处理器,可直接将应用日志推送到 TLS。

Monolog 3.x(Laravel 10+ / PHP 8.2+)

Monolog 2.x

Laravel 集成

config/logging.php 中添加自定义 channel:

.env 配置:

关于实时日志导入

实时日志导入使用 putLogs 接口并非最佳选择,因为每次请求都会建立 HTTP 连接,开销较大。建议:

License

MIT


All versions of volcengine-tls-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
guzzlehttp/guzzle Version ~7.0
guzzlehttp/psr7 Version ~2.0
google/protobuf Version ^5.0
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 larva/volcengine-tls-sdk-php contains the following files

Loading the files please wait ...