PHP code example of thesis / grpc-server-reflection
1. Go to this page and download the library: Download thesis/grpc-server-reflection 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/ */
thesis / grpc-server-reflection example snippets
declare(strict_types=1);
use Thesis\Grpc\Server;
use Thesis\Grpc\Server\Reflection;
$server = new Server\Builder()
->withServices(/* your service registries */)
->build();
Reflection\registerV1($server);
$server->start();
declare(strict_types=1);
use Thesis\Grpc\Server;
use Thesis\Grpc\Server\Reflection;
$server = new Server\Builder()
->withServices(/* your service registries */)
->build();
Reflection\registerV1Alpha($server);
$server->start();