Tars PHP is a solution for PHP to use the tars binary protocol, as well as the overall operation and maintenance of the tars platform, RPC and a series of capabilities. It mainly consists of the following parts:
If you want to experience tar server quickly, please enter the examples directory, which contains detailed deployment guidelines and development guidelines for three services
Refer to here for more detailed documents https://tarsphp.gitbook.io/doc
The PHP ability to call the tar service is provided in the tar client, including:
Call the instance of the remote service;
Main dispatching Report
Automatic addressing module
Tars-server provides the underlying server framework and supports the following features
High performance service based on swoole1. X / 2. X / 4. X
Support two protocol modes: tup protocol and tar stream
Support three kinds of servers: http, TCP and timer
Reporting, monitoring and log integration
Tars platform release support Details Description
The ability module to pull configuration files from the configuration service of the tar platform.
The module that packs the business code of tar server.
The PHP extension code that tar relies on Detailed description
Tars Modules of remote log Detailed description
tarsFunction modules for main dispatching report and feature report Detailed description
The function module of tars for master addressing Detailed description
tars Module of keeping alive Report Detailed description
tars Module for profile resolution Detailed description
Three actual server instances and descriptions of TCP, HTTP and timer:
The tool of automatic code generation can automatically generate server and client code. Detailed description
Compared with the default template tar.default, PHP adds tar.tarsphp.default, mainly including the following parts:
<tars>
...
<application>
<server>
...
php=/data/env/runtime/php-7.1.7/bin/php
buffer_output_size=12582912
open_tcp_nodelay=1
open_eof_check=0
open_eof_split=0
task_worker_num=1
dispatch_mode=2
daemonize=1
...
</server>
</application>
...
</tars>
Support custom PHP execution file (/ tar / application / server < PHP >), default / usr / bin / PHP.
Support the configuration of the startup file of the custom tar s_php framework (/ tar s / application / server < entry >), and the Src / index.php under the default project directory.
The startup script generated by the tar platform will execute the startup and shutdown script with entrance as the entry file.
In the tar server module, three different HTTP, timer and TCP servers need to use different modules. Please be sure to add and modify new templates!!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. Open source ecosystem
2. Collaboration, People, Software
3. Evaluation model