{"id":15024990,"url":"https://github.com/spiral-modules/php-grpc","last_synced_at":"2025-10-03T23:32:04.270Z","repository":{"id":44966744,"uuid":"152379960","full_name":"spiral-modules/php-grpc","owner":"spiral-modules","description":":electric_plug: Fast and furious GRPC server for PHP applications","archived":true,"fork":false,"pushed_at":"2022-01-20T20:24:02.000Z","size":13060,"stargazers_count":477,"open_issues_count":0,"forks_count":48,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-09-27T09:09:31.672Z","etag":null,"topics":["golang","grpc","grpc-server","php","php-grpc","php7","roadrunner","spiral","tls"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spiral-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-10T07:19:39.000Z","updated_at":"2025-04-20T18:05:03.000Z","dependencies_parsed_at":"2022-09-13T02:40:20.646Z","dependency_job_id":null,"html_url":"https://github.com/spiral-modules/php-grpc","commit_stats":null,"previous_names":["spiral/php-grpc"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/spiral-modules/php-grpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiral-modules%2Fphp-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiral-modules%2Fphp-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiral-modules%2Fphp-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiral-modules%2Fphp-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spiral-modules","download_url":"https://codeload.github.com/spiral-modules/php-grpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiral-modules%2Fphp-grpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278234034,"owners_count":25953075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","grpc","grpc-server","php","php-grpc","php7","roadrunner","spiral","tls"],"created_at":"2024-09-24T20:01:19.066Z","updated_at":"2025-10-03T23:32:03.973Z","avatar_url":"https://github.com/spiral-modules.png","language":"Go","readme":"⚠️ RRv2 `protoc-gen-php-grpc` releases are here: https://github.com/roadrunner-server/roadrunner/releases  ⚠️   \n⚠️ `PHP Client` for the RRv2 is here: https://github.com/spiral/roadrunner-grpc  ⚠️ \n\nPHP-GRPC\n=================================\n[![Latest Stable Version](https://poser.pugx.org/spiral/php-grpc/version)](https://packagist.org/packages/spiral/php-grpc)\n[![GoDoc](https://godoc.org/github.com/spiral/php-grpc?status.svg)](https://godoc.org/github.com/spiral/php-grpc)\n[![Tests](https://github.com/spiral/roadrunner-plugins/workflows/Linux/badge.svg)](https://github.com/spiral/roadrunner-plugins/actions)\n[![Linters](https://github.com/spiral/roadrunner-plugins/workflows/Linters/badge.svg)](https://github.com/spiral/roadrunner-plugins/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/spiral/php-grpc)](https://goreportcard.com/report/github.com/spiral/php-grpc)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/spiral/php-grpc.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/spiral/php-grpc/alerts/)\n[![Codecov](https://codecov.io/gh/spiral/php-grpc/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/php-grpc/)\n\nPHP-GRPC is an open-source (MIT) high-performance PHP [GRPC](https://grpc.io/) server build at top of [RoadRunner](https://github.com/spiral/roadrunner).\nServer support both PHP and Golang services running within one application. \n\nNote:\n-------\nFor the RoadRunner v2, please use the [RR-GRPC](https://github.com/spiral/roadrunner-grpc) library.   \n\nDocumentation:\n--------\n  * [Installation and Configuration](https://spiral.dev/docs/grpc-configuration)\n  * [Service Code](https://spiral.dev/docs/grpc-service)\n  * [Client SDK](https://spiral.dev/docs/grpc-client)\n  * [Golang Services](https://spiral.dev/docs/grpc-golang)\n  * [Data Streaming](https://spiral.dev/docs/grpc-streaming)\n\nFeatures:\n--------\n- native Golang GRPC implementation compliant\n- minimal configuration, plug-and-play model\n- very fast, low footprint proxy\n- simple TLS configuration\n- debug tools included\n- Prometheus metrics\n- middleware and server customization support\n- code generation using `protoc` plugin (`go get github.com/spiral/php-grpc/cmd/protoc-gen-php-grpc`)\n- transport, message, worker error management\n- response error codes over php exceptions\n- works on Windows\n\nUsage:\n--------\nInstall `rr-grpc` and `protoc-gen-php-grpc` by building it or use [pre-build binaries](https://github.com/spiral/php-grpc/releases).\n\nDefine your service schema using proto file. You can scaffold protobuf classes and GRPC [service interfaces](https://github.com/spiral/php-grpc/blob/master/example/server/src/Service/EchoInterface.php) using:\n\n```\n$ protoc --php_out=target-dir/ --php-grpc_out=target-dir/ sample.proto\n```\n\n\u003e Make sure to install [protoc compiler](https://github.com/protocolbuffers/protobuf) and run `composer require spiral/php-grpc` first\n\n[Implement](https://github.com/spiral/php-grpc/blob/master/example/server/src/EchoService.php) needed classes and create [worker.php](https://github.com/spiral/php-grpc/blob/master/example/server/worker.php) to invoke your services.\n\nPlace [.rr.yaml](https://github.com/spiral/php-grpc/blob/master/example/server/.rr.yaml) (or any other format supported by viper configurator) into the root of your project. You can run your application now:\n\n```\n$ rr-grpc serve -v -d\n```\n\nTo reset workers state:\n\n```\n$ rr-grpc grpc:reset\n```\n\nTo show workers statistics:\n\n```\n$ rr-grpc grpc:workers -i\n```\n\n\u003e See [example](https://github.com/spiral/php-grpc/tree/master/example).\n\nYou can find more details regarding server configuration at [RoadRunner Wiki](https://roadrunner.dev/docs).\n\nLicense:\n--------\nMIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [SpiralScout](https://spiralscout.com).\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiral-modules%2Fphp-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspiral-modules%2Fphp-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiral-modules%2Fphp-grpc/lists"}