Skip to content

R-omk/php-trpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USAGE

<?php
use Romkart\Trpc\Server;
use Tarantool\Client\Client;
use Tarantool\Client\Connection\StreamConnection;
use Tarantool\Client\Packer\PurePacker;

require __DIR__ . '/vendor/autoload.php';
$conn = new StreamConnection('tcp://trpc:3019');
$client = new Client($conn, new PurePacker());
$trpcServer = new Server($client, 'phptest');
$trpcServer->Ever();

By default used BasicCallDriver

$trpcServer->setCallDriver(new Romkart\Trpc\BasicCallDriver);

About

PHP Server for trpc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages