processus/jsonrpcpipe
Composer 安装命令:
composer require processus/jsonrpcpipe
包简介
json rpc pipe
README 文档
README
yet another json-rpc
Example: ZMQ Server (Task)
cd src/example-teststack/bin php runtask.php Zmq.TestStackClient
Example: ZMQ Client (Task)
cd src/example-teststack/bin php runtask.php Zmq.TestStackClient
Example: Api Request
// file: example-teststack/htdocs/api/v1/index.php
$mockEnabled = true; $mockRequest = array( 'method' => 'TestStack.Test.ping', 'params' => array(), );
use Api\V1\TestStack\Modules\GatewayModule;
$gtw = new \Api\V1\TestStack\Modules\GatewayModule(); $gtw->init(); $gtw->setIsAutoFetchRequestTextEnabled(true); $gtw->setIsAutoEmitResponseEnabled(true); $gtw->setIsDebugEnabled(true); if($mockEnabled) { $gtw->setIsAutoFetchRequestTextEnabled(false); // do not fetch from php://input $gtw->setRawRequestData($mockRequest); // use that mock data instead } $gtw->run();
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-19