Перейти к содержимому

Creating a GRPC Service and Client with PHP, RoadRunner, and Spiral Framework

Pavel Buchnev (butschster)

0:00 / 0:00

Creating a GRPC Service and Client with PHP, RoadRunner, and Spiral Framework

3 118 просмотров · 3 года назад
Pavel Buchnev (butschster)
74 подписчика
3 118 просмотров · 3 года назад
In this tutorial, we'll show you how to create a GRPC service and client using PHP, RoadRunner, and Spiral Framework. We'll cover everything from building the service and client, and demonstrate how to make calls between them. This is a great way to learn about using GRPC with PHP and see how it can be used in a real-world application. Table of Contents 00:00 Start of the stream 00:19 Overview of proto files 01:15 Installation of Spiral Framework 02:34 Configuration of RoadRunner 03:46 Compilation of proto files 04:17 About how gRPC works in RoadRunner and PHP 06:00 Creation of PingService class 08:00 Creation and configuration of the second service 09:41 Creation of PingServiceClient class 15:40 Creation of a test console command 19:06 Executing a test request 19:57 Creation of a method with authorization 23:53 Creation of an interceptor for authorization 34:42 Creation of an interceptor for error handling 38:26 Implementation of interceptors on the client side #grpc #php #roadrunner Docs: https://spiral.dev/docs/grpc-configur...