Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (9 sloc) 337 Bytes
<?php
require_once '../../vendor/autoload.php';
use Datto\JsonRpc;
use Datto\JsonRpc\Simple;
$evaluator = new Simple\Evaluator(new Simple\Mapper('Demo\\Api\\Endpoint\\'));
$server = new JsonRpc\Server($evaluator);
header('Content-Type: application/json');
$message = file_get_contents('php://input');
echo $server->reply($message);