Skip to content

altessa-s/proto-gen-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proto-gen-php

Generated PHP bindings (classic grpc/grpc stubs) for the altessa-s/proto schema.

This repository is auto-generated. Do not edit its files by hand — they are regenerated from altessa-s/proto and pushed automatically on every push to main / develop and every vX.Y.Z tag. The only hand-maintained file is this README.md.

For RoadRunner-flavored stubs, see altessa-s/proto-gen-php-rr.

Installation

Composer, VCS-based:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/altessa-s/proto-gen-php"
        }
    ],
    "require": {
        "altessa-s/proto-gen-php": "^0.1"
    }
}

Runtime prerequisites:

  • PHP 8.1+
  • ext-grpc (PECL extension)
  • grpc/grpc (^1.57)
  • google/protobuf (^3.25 || ^4.0)
  • google/common-protos (^4.0)

Packages

Classes are PSR-4 autoloaded under the Io\Altessa\ prefix. gRPC client stubs end in *Client.php and extend Grpc\BaseStub.

Proto package PHP namespace Description
io.altessa.badrequest.v1 Io\Altessa\Badrequest\V1 BadRequest / FieldViolation error-detail payload for a google.rpc.Status with INVALID_ARGUMENT.
io.altessa.serviceinfo.v1 Io\Altessa\Serviceinfo\V1 ServiceInfo runtime metadata plus the ServiceInfoService.GetServiceInfo introspection RPC.
io.altessa.type.v1 Io\Altessa\Type\V1 General-purpose, domain-neutral value types (Contact, DatePeriod, FileRef, …) reused across services.

Usage

use Io\Altessa\Serviceinfo\V1\ServiceInfo;

$info = new ServiceInfo();
$info->setServiceName('billing-api');
$info->setFullVersion('1.4.2+build.873');

The gRPC client stub for ServiceInfoService is Io\Altessa\Serviceinfo\V1\ServiceInfoServiceClient, whose single GetServiceInfo(GetServiceInfoRequest) method returns a GetServiceInfoResponse.

Versioning

Versions track altessa-s/proto: a vX.Y.Z tag on the schema repo produces the same release here, and the main / develop branches follow the matching schema branches.

Contributing

This repository contains generated output only. To change what appears here, edit the schemas or generation config in altessa-s/proto; the next sync regenerates and republishes these bindings.

License

MIT — see LICENSE.

About

Generated PHP bindings (classic grpc/grpc stubs, requires PECL grpc extension) for the shared protobuf schemas in altessa-s/proto

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages