承接 processus/jsonrpcpipe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-11-19