PHP code example of eliep / avro-rpc-php-generator
1. Go to this page and download the library: Download eliep/avro-rpc-php-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eliep / avro-rpc-php-generator example snippets
use My\Avro\ProtocolRequestor
$serverHost = '127.0.0.1';
$serverPort = 1412;
try {
$requestor = new ProtocolRequestor($serverHost, $serverPort);
} catch (\Exception $e) {
// unable to reach the server.
}