Grpc\ChannelCredentials::createInsecure(), ]); $request = new Helloworld\HelloRequest(); $request->setName($name); list($reply, $status) = $client->SayHello($request)->wait(); if ($status->code !== Grpc\STATUS_OK) { echo "ERROR: ".$status->code.", ".$status->details."\n"; exit(1); } echo $reply->getMessage()."\n"; } $name = !empty($argv[1]) ? $argv[1] : 'world'; greet($name);