Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 573 Bytes

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