Giter Site home page Giter Site logo

doc's Introduction

TARS-PHP

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

tars-client

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

Detailed description

tars-server

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

tars-config

The ability module to pull configuration files from the configuration service of the tar platform.

Details Description

tars-deploy

The module that packs the business code of tar server.

Detailed description

tars-extension

The PHP extension code that tar relies on Detailed description

tars-log

Tars Modules of remote log Detailed description

tars-monitor

tarsFunction modules for main dispatching report and feature report Detailed description

tars-registry

The function module of tars for master addressing Detailed description

tars-report

tars Module of keeping alive Report Detailed description

tars-utils

tars Module for profile resolution Detailed description

examples

Three actual server instances and descriptions of TCP, HTTP and timer:

tars2php

The tool of automatic code generation can automatically generate server and client code. Detailed description

tars Platform modification instructions for PHP

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!!

doc's People

Contributors

bobzhangyong avatar copyrenzhe avatar cuixg avatar dpp2009 avatar luoxiaojun1992 avatar meijing0114 avatar sy-records avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.