Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongfanglei committed Mar 5, 2020
1 parent 2acd2a2 commit e1763e4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
16 changes: 9 additions & 7 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">php-monitor</h1>

<div align="center">
一个免费、易用、强大的PHP服务监控工具。
一个免费、易用、强大的PHP服务监控工具。帮助开发者监控PHP服务,分析PHP性能。

[![Latest Stable Version](https://poser.pugx.org/laynefyc/php-monitor/v/stable.png)](https://packagist.org/packages/laynefyc/php-monitor)
[![Total Downloads](https://poser.pugx.org/laynefyc/php-monitor/downloads.png)](https://packagist.org/packages/laynefyc/php-monitor)
Expand Down Expand Up @@ -236,14 +236,16 @@ composer create-project --prefer-dist --ignore-platform-reqs laynefyc/php-monito

7. Swoole支持

````php
public function onReceive(\swoole_server $serv, $fd, $from_id, $dataSrc)
````php
public function onReceive(\swoole_server $serv, $fd, $from_id, $dataSrc)
{
require '/home/www/cai/php-monitor/src/autoPrepend.php';
//your code
require '/home/www/cai/php-monitor/src/autoPrepend.php';

//your code

\pm\common\PMonitor::shutdown($data['params']['route'],$serv->getClientInfo($fd,$from_id)['remote_ip'],'TCP');
}
````
}
````

## TODO
- [x] Sqlite存储方式开发;
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div align="center">

A free, flexible, powerful tool that helps you monitor PHP Service.
A free, flexible, powerful tool that helps you monitor PHP Service and profiling PHP code.

[![Latest Stable Version](https://poser.pugx.org/laynefyc/php-monitor/v/stable.png)](https://packagist.org/packages/laynefyc/php-monitor)
[![Total Downloads](https://poser.pugx.org/laynefyc/php-monitor/downloads.png)](https://packagist.org/packages/laynefyc/php-monitor)
Expand Down Expand Up @@ -235,16 +235,16 @@ Set in configuration file `src/config/config.php`,The information is as follows:

7. Swoole support

````php
public function onReceive(\swoole_server $serv, $fd, $from_id, $dataSrc)
````php
public function onReceive(\swoole_server $serv, $fd, $from_id, $dataSrc)
{
require '/home/www/cai/php-monitor/src/autoPrepend.php';

//your code
require '/home/www/cai/php-monitor/src/autoPrepend.php';
//your code
\pm\common\PMonitor::shutdown($data['params']['route'],$serv->getClientInfo($fd,$from_id)['remote_ip'],'TCP');
}
````
}
````

## TODO
- [x] Sqlite storage mode development;
Expand Down

0 comments on commit e1763e4

Please sign in to comment.