Skip to content

Commit bc35c49

Browse files
authored
add composer flag on readme
add composer flag on readme
1 parent 111abfb commit bc35c49

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Dora RPC
2-
----------
3-
[![Build Status](https://travis-ci.org/xcl3721/Dora-RPC.svg?branch=master)](https://travis-ci.org/xcl3721/Dora-RPC)
2+
3+
[![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)
44
##简介(Introduction)
55
用于复杂项目前后端分离,分离后项目都通过API工作可更好维护管理。
66
> * 是一款基础于Swoole定长包头通讯协议的最精简的RPC
@@ -45,7 +45,7 @@ http://blog.sina.com.cn/s/blog_54ef39890102vs3h.html
4545
> * zlib for compress packet
4646
4747
##Installation
48-
```shell
48+
```
4949
pecl install swoole
5050
5151
vim composer.json
@@ -103,18 +103,7 @@ composer update
103103
104104
###TCP客户端(TCP Client)
105105
```PHP
106-
include "../src/Doraconst.php";
107-
include "../src/Packet.php";
108-
include "../src/Client.php";
109-
110-
/*
111-
$config = array(
112-
"group1" => array(
113-
array("ip" => "127.0.0.1", "port" => 9567),
114-
//array("ip"=>"127.0.0.1","port"=>9567), you can set more ,the client will random select one,to increase High availability
115-
),
116-
);*/
117-
//or
106+
118107
$config = include("client.conf.php");
119108
//define the mode
120109
$mode = array("type" => 1, "group" => "group1");
@@ -261,7 +250,6 @@ echo "max:" . $maxrequest . PHP_EOL;
261250

262251
###服务端(Server)
263252
```PHP
264-
include "src/Server.php";
265253

266254
class Server extends DoraRPCServer {
267255

@@ -369,7 +357,7 @@ There is still a lot of optimization space
369357

370358
----------
371359
###Optimize performance性能优化
372-
```SHELL
360+
```
373361
vim demoserver.php
374362
to see $externalConfig var
375363
and swoole offcial document

0 commit comments

Comments
 (0)