PHP Classes

File: examples/client.php

Recommend this page to a friend!
  Classes of Wolfy-J   goridge   examples/client.php   Download  
File: examples/client.php
Role: Example script
Content type: text/plain
Description: Example script
Class: goridge
Run Golang code from PHP calling its RPC server
Author: By
Last change: release 2.0.0
Date: 6 years ago
Size: 165 bytes
 

Contents

Class file image Download
<?php

use Spiral\Goridge;

require
"vendor/autoload.php";

$rpc = new Goridge\RPC(new Goridge\SocketRelay("127.0.0.1", 6001));

echo
$rpc->call("App.Hi", "Antony");