Download the PHP package thesis/grpc-health without Composer

On this page you can find all versions of the php package thesis/grpc-health. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package grpc-health

thesis/grpc-health

An implementation of the standard gRPC Health Checking Protocol (grpc.health.v1.Health) for thesis/grpc. It ships both sides of the protocol:

An empty service name ('') always addresses the overall health of the server, as defined by the protocol.

Contents

Installation

Server

The health state lives in a single Watchdog. Register it once in your container and share it through three narrow ports, each injected only where it is needed:

Application services depend on Health\Reporter — they never see gRPC — and report their own readiness:

On shutdown, drain traffic through the Lifecycle: mark everything NOT_SERVING so load balancers stop routing while in-flight work finishes:

In a DI container this is one singleton Watchdog aliased to whichever of Reporter, Lifecycle and Monitor each consumer needs.

Client

Wrap the generated HealthClient to get typed statuses instead of raw protobuf:

watch() runs the Watch server stream in a background coroutine and calls your callback with the current status and then on every change, until the returned handle is closed:


All versions of grpc-health with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
amphp/amp Version ^3.1
amphp/pipeline Version ^1.2
thesis/googleapis-rpc-types Version ^0.3
thesis/grpc-client Version ^0.3
thesis/grpc-protocol Version ^0.3
thesis/grpc-server Version ^0.3
thesis/protobuf Version ^0.2
thesis/protoregistry Version ^0.1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thesis/grpc-health contains the following files

Loading the files please wait ...