There isn't support for running a PHP gRPC server (and nothing on the roadmap either). You might be able to convert an HTTP/2 request to an HTTP/1.1 request and forward that to the PHP server, but I am not sure how the server can respond with trailers. The spec for gRPC is here: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
You could in theory directly respond using the headers (and trailers) described there. You wouldn't even need the gRPC library to do it. On Friday, May 24, 2019 at 5:19:29 AM UTC-7, andrew...@global-fashion-group.com wrote: > > From a naive, first principles thought given that gRPC is implemented over > HTTP/2 is it possible to implement a server in PHP mediated by a proxy such > as NGINX or with mod_php? > > Might only be possible with Unary RPC, but that's as much as REST provides > us now anyways > > On Wednesday, January 27, 2016 at 11:23:26 PM UTC+1, > stephe...@bigcommerce.com wrote: >> >> Hey all— >> >> It appears as of right now you can only create CLIENTS in PHP, but not >> servers. I was wondering what the technical blockers behind this were and >> if it's on the roadmap for a future release? >> >> Thanks! >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/826680e7-a15d-419f-8e89-f465937d12d2%40googlegroups.com.