Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started

grpc/grpc 1.1.0

gRPC library for PHP
Package summary
Share
0
issues
0
licenses
Package created
29 May 2015
Version published
11 Sep 2017
Maintainers
3
Total deps
0
Direct deps
0
License
BSD-3-Clause
Error Generating Report

Frequently Asked Questions

What does grpc/grpc do?

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.

How do you use grpc/grpc?

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.

Where are the grpc/grpc docs?

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.