xat / contao-rpc

RPC Framework for Contao
2 stars 0 forks source link

contao-rpc

This is an RPC extension for the Content Management System Contao. It allows you as a developer to define RPC Methods as simple as this:


\\ In your config.php:

$GLOBALS['RPC']['methods'] => array
(
  'pong'    => array
  (
    'call'    => array('MyPing', 'ping')
  )
);

\\ Your MyPing class:

class MyPing
{
  public function ping($objRequest, $objResponse)
  {
    $objResponse->setData('pong');
  }
}

Within the default implementation contao-rpc supports JSON-RPC 2.0. Find out more about JSON-RPC here. However, contao-rpc is designed to be very flexibel and extendable. This means if you need something other then JSON-RPC, in most cases it should be easy to implement using contao-rpc as your base.

Example

We have a basic GUI which uses contao-rpc. You can check it out here.

Compatibility

contao-rpc has been tested with Contao 3.0.x, 3.1.x and 3.2.x.

Use Cases

Dependencies

Contributers

License

Copyright (c) 2013 Simon Kusterer Licensed under the LGPL license.