Skip to content

Commit

Permalink
add composer flag on readme
Browse files Browse the repository at this point in the history
add composer flag on readme
  • Loading branch information
137-rick committed Jul 8, 2016
1 parent 111abfb commit bc35c49
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions README.md
@@ -1,6 +1,6 @@
#Dora RPC
----------
[![Build Status](https://travis-ci.org/xcl3721/Dora-RPC.svg?branch=master)](https://travis-ci.org/xcl3721/Dora-RPC)
[![Build Status](https://travis-ci.org/xcl3721/Dora-RPC.svg?branch=master)](https://travis-ci.org/xcl3721/Dora-RPC) [![Latest Stable Version](https://poser.pugx.org/xcl3721/dora-rpc/v/stable)](https://packagist.org/packages/xcl3721/dora-rpc) [![Latest Unstable Version](https://poser.pugx.org/xcl3721/dora-rpc/v/unstable)](https://packagist.org/packages/xcl3721/dora-rpc) [![License](https://poser.pugx.org/xcl3721/dora-rpc/license)](https://packagist.org/packages/xcl3721/dora-rpc)
##简介(Introduction)
用于复杂项目前后端分离,分离后项目都通过API工作可更好维护管理。
> * 是一款基础于Swoole定长包头通讯协议的最精简的RPC
Expand Down Expand Up @@ -45,7 +45,7 @@ http://blog.sina.com.cn/s/blog_54ef39890102vs3h.html
> * zlib for compress packet
##Installation
```shell
```
pecl install swoole
vim composer.json
Expand Down Expand Up @@ -103,18 +103,7 @@ composer update
###TCP客户端(TCP Client)
```PHP
include "../src/Doraconst.php";
include "../src/Packet.php";
include "../src/Client.php";

/*
$config = array(
"group1" => array(
array("ip" => "127.0.0.1", "port" => 9567),
//array("ip"=>"127.0.0.1","port"=>9567), you can set more ,the client will random select one,to increase High availability
),
);*/
//or

$config = include("client.conf.php");
//define the mode
$mode = array("type" => 1, "group" => "group1");
Expand Down Expand Up @@ -261,7 +250,6 @@ echo "max:" . $maxrequest . PHP_EOL;

###服务端(Server)
```PHP
include "src/Server.php";

class Server extends DoraRPCServer {

Expand Down Expand Up @@ -369,7 +357,7 @@ There is still a lot of optimization space

----------
###Optimize performance性能优化
```SHELL
```
vim demoserver.php
to see $externalConfig var
and swoole offcial document
Expand Down

0 comments on commit bc35c49

Please sign in to comment.