2017 © Pedro Peláez
 

yii2-extension yii2-json-rpc

A lightweight JsonRpc Server and Client for PHP

image

nizsheanez/yii2-json-rpc

A lightweight JsonRpc Server and Client for PHP

  • Tuesday, June 12, 2018
  • by nizsheanez
  • Repository
  • 3 Watchers
  • 20 Stars
  • 1,936 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 20 Forks
  • 1 Open issues
  • 14 Versions
  • 10 % Grown

The README.md

JsonRpc Server and Client for Yii2, (*1)

Usage Server

1) Install with Composer, (*2)

"require": {
    "nizsheanez/yii2-json-rpc": "1.*",
},

php composer.phar update

2) Add action to controller, (*3)

public function actions()
{
    return array(
        'index' => array(
            'class' => \nizsheanez\jsonRpc\Action::class,
        ),
    );
}

public function sum($a, $b) {
    return $a + $b;
}

3) All methods of controller now available as JsonRpc methods, for example see method sum:, (*4)

Usage Client

$client = new \nizsheanez\JsonRpc\Client('http://url/of/webservice');

$response = $client->sum(2, 3);
echo $response;

4) Enjoy!, (*5)

The Versions

12/06 2018

dev-master

9999999-dev

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

12/06 2018

v1.1.8

1.1.8.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

12/05 2017

v1.1.7

1.1.7.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

20/04 2016

v1.1.6

1.1.6.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

05/04 2015

v1.1.5

1.1.5.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

14/11 2014

v1.1.4

1.1.4.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

06/11 2013

v1.1.3

1.1.3.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

06/11 2013

v1.1.2

1.1.2.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

04/11 2013

v1.1.1

1.1.1.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

24/10 2013

v1.1.0

1.1.0.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

by Alex Sharov

json yii2 yii jsonrpc rpc

02/10 2013

v1.0.3

1.0.3.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

by Alex Sharov

json yii2 yii jsonrpc rpc

20/09 2013

v1.0.2

1.0.2.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

by Alex Sharov

json yii2 yii jsonrpc rpc

15/09 2013

v1.0.1

1.0.1.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

by Alex Sharov

json yii2 yii jsonrpc rpc

14/09 2013

v1.0.0

1.0.0.0

A lightweight JsonRpc Server and Client for PHP

  Sources   Download

BSD-3-Clause

by Alex Sharov

json yii2 yii jsonrpc rpc