Skip to content

1105-6601/grpc-go-server-php-client-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Compile to Golang

protoc example.proto --go_out=plugins=grpc:./go
  • --go_out=plugins=grpc: is required
    • ./go is output directory of generate result

Compile to PHP

protoc example.proto \
  --php_out=./php \
  --grpc_out=./php \
  --plugin=protoc-gen-grpc=/grpc/bins/opt/grpc_php_plugin
  • --plugin=protoc-gen-grpc=/grpc/bins/opt/grpc_php_plugin is required

  • --php_out=

    • Output directory of Request, Response and Metadata.
  • --grpc_out

    • Output directory of Client,

Run server

cd example/go/server
go run server.go

Run client

cd example/php
php index.php

About

gRPC PHP-Client, Go-Server, quick starter template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published