pilotphp/grpc

Transport-domain gRPC method declarations, compiled method-map, and RoadRunner-independent unary RPC application for the PilotPHP Agent-First framework.

Maintainers

Package info

gitlab.com/pilotphp/grpc

Issues

pkg:composer/pilotphp/grpc

Transparency log

Statistics

Installs: 9

Dependents: 1

Suggesters: 0

Stars: 0

0.1.4 2026-08-02 19:19 UTC

This package is auto-updated.

Last update: 2026-08-02 16:22:08 UTC


README

Transport-domain gRPC package for the PilotPHP Agent-First framework.

Declares unary gRPC methods, compiles them into a deterministic method-map artifact, loads that artifact at worker boot, and handles transport-neutral GrpcCall values through the contracts kernel boundary — without depending on RoadRunner, pilotphp/operation, or pilotphp/container.

Requirements

  • PHP 8.5+
  • pilotphp/contracts ^0.1.2

Install

composer require pilotphp/grpc

Quick vertical slice

use PilotPHP\Grpc\Artifact\GrpcArtifactLoader;
use PilotPHP\Grpc\Runtime\GrpcApplication;
use PilotPHP\Grpc\Runtime\GrpcCall;

$map = (new GrpcArtifactLoader())->loadFromBytes($trustedArtifactBytes);
$app = new GrpcApplication($map, $kernel, $container);

$result = $app->handle(new GrpcCall(
    serviceName: 'acme.users.v1.UserService',
    methodName: 'GetUser',
    request: $decodedProtobufRequest,
));

Host runtimes own KernelInterface::boot() / reset() / shutdown(). GrpcApplication only calls invoke().

Documentation

Quality

composer validate --strict
composer update --prefer-stable
composer check

License

MIT