processus/jsonrpcpipe

json rpc pipe

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 2

Open Issues: 0

pkg:composer/processus/jsonrpcpipe

dev-master 2012-11-19 19:55 UTC

This package is not auto-updated.

Last update: 2025-11-02 08:17:59 UTC


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();