Download the PHP package phptars/tars-client without Composer

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

Brief introduction

It mainly includes the receiving and sending capacity and reporting capacity of the master addressing network

The tests directory provides a test case for the tar service. Service name is app.server.servant**

Instructions for use

Refer to the test cases provided.

The tar client side calls the tar service. When instantiating, it needs to pass in an instance of \ tars \ client \ communicator config and set the necessary configuration information. It mainly includes the following contents

Service addressing mode

Combined with the test case testservant.php, the code specifications of different service addressing are introduced.

Set the relevant configuration through \ tars \ client \ communicatorconfig class. The test case gives the example codes of two addressing modes

  1. Master addressing

Once the locator is specified, the tar can automatically grab the service address according to the service name. The format of the locator configuration is as follows

The tar master is also a tar service. The service name is tar. Tarsregistry. Queryobj , the transmission protocol is TCP, the service address is 172.16.0.161, and the port is 17890. Please fill in according to the actual situation of the service during the actual development**

After the above master service is determined, the module name and coding format can be specified as required. The default escalation module name is tarsproxy . In order to facilitate business tracking, it is recommended to re specify the escalation module name

  1. Specify IP

Specify the address of the service party. In this way, you need to specify the IP and port of the service. The code is as follows.

Other uses are the same as automatic addressing

Changelog

v0.3.0(2019-07-30)

-Services that support calling protobuf


All versions of tars-client with dependencies

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

Loading the files please wait ....