grpc/grpc
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The grpc/grpc library is a PHP client library. It's effectively a mirror of the original gRPC (https://github.com/grpc/grpc), containing only PHP files to support Composer installation. The purpose of this library is to allow PHP developers to effectively communicate with gRPC servers via the PHP programming language. gRPC is a high performance, open-source universal RPC (Remote Procedure Call) framework that works across numerous platforms, offering benefits like low latency, efficient binary payloads, load balancing and more.
To use the grpc/grpc library in your PHP projects, you first need to install it via Composer, a tool for dependency management in PHP. This is as simple as running the following command in your terminal:
composer require grpc/grpc
This command tells composer to download the package and add it to your project's dependencies.
After successfully installing, you now have access to gRPC's functionalities. You would typically start by creating a channel (a virtual connection to an endpoint), then create a new client with this channel. You can call rpc methods on this client.
Note that the actual code depend on the gRPC service you are connecting to.
The grpc/grpc library documentation can be found in the src/php directory of the original gRPC Github project at https://github.com/grpc/grpc/tree/master/src/php. This contains information such as how to install and use the library, as well as documentation on the API and examples of usage. Always make sure to refer to the official documentation for accurate and most updated information.