PHP JSON-RPC 2.0 Server/Client Implementation
PHP
Pull request Compare This branch is 1 commit ahead, 9 commits behind sergeyfast:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generator
tests
.gitignore
BaseJsonRpcClient.php
BaseJsonRpcServer.php
README.md
example-server.php

README.md

eazy-jsonrpc

PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

Server

  • Inherits your exposed class from BaseJsonRpcServer or create new BaseJsonRpcServer( $instance );
  • $server->execute();

SMD Schema available via /server.php?smd

Client

  • Generate Client from SMD Schema from generator/ php JsonRpcClientGenerator <smd-file> <class-name>
  • Create client instance $client = <class-name>::GetInstance(); or $client = new <class-name>( <url> );
  • Use it $result = $client->Method(); :)