Download the PHP package caasdata/tars-client without Composer

On this page you can find all versions of the php package caasdata/tars-client. 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 tars-client

tars-client

简介

主要包含主控寻址网络收发能力、上报能力

tests目录提供了一个tars服务的测试用例。服务名为 App.Server.Servant

使用说明

参照提供的测试用例。
tars-client端调用tars服务,在实例化时需要传入 \Tars\client\CommunicatorConfig 的实例,设定必要的配置信息。主要包含以下内容

服务寻址方式

结合测试用例testServant.php介绍不同服务寻址的代码规范。
通过 \Tars\client\CommunicatorConfig 类设定相关配置。测试用例给出了两种寻址方式的示例代码
1、主控寻址
一旦指定locator,tars可以根据服务名自动抓取服务地址。locator配置的格式如下

tars主控本身也是一个tars服务,服务名为 tars.tarsregistry.QueryObj ,传输协议为tcp,服务地址为 172.16.0.161,端口为 17890 。实际开发中请 根据服务实际情况填写

上述主控服务确定后,可以根据需要指定上报的模块名及编码格式。默认的上报模块名为 tarsproxy ,为了便于跟踪业务,建议重新指定上报模块名

2、指定ip 指定服务方的地址。这种方式需要指定服务的ip、port,代码如下。

其他用法同自动寻址相同


All versions of tars-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
caasdata/tars-registry Version ~0.1
caasdata/tars-monitor Version ^0.1.2
caasdata/tars-utils Version ~0.1
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 caasdata/tars-client contains the following files

Loading the files please wait ....