{"id":18993073,"url":"https://github.com/bakins/grpc-fastcgi-example","last_synced_at":"2025-06-12T02:35:38.861Z","repository":{"id":24356504,"uuid":"101287872","full_name":"bakins/grpc-fastcgi-example","owner":"bakins","description":"Example application for use with grpc-fastcgi-proxy","archived":false,"fork":false,"pushed_at":"2022-02-15T17:24:28.000Z","size":11165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T15:22:19.199Z","etag":null,"topics":["fastcgi","grpc","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bakins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-24T11:31:25.000Z","updated_at":"2022-02-15T17:24:29.000Z","dependencies_parsed_at":"2022-07-25T09:32:10.061Z","dependency_job_id":null,"html_url":"https://github.com/bakins/grpc-fastcgi-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fgrpc-fastcgi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fgrpc-fastcgi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fgrpc-fastcgi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fgrpc-fastcgi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakins","download_url":"https://codeload.github.com/bakins/grpc-fastcgi-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240004961,"owners_count":19732664,"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","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":["fastcgi","grpc","php"],"created_at":"2024-11-08T17:19:46.979Z","updated_at":"2025-02-21T11:28:15.265Z","avatar_url":"https://github.com/bakins.png","language":"PHP","readme":"# grpc-fastcgi-example\n\nExample usage of [grpc-fastcgi-proxy](https://github.com/bakins/grpc-fastcgi-proxy)\n\nThis is a simple PHP application copied from the [gRPC examples](https://grpc.io/docs/quickstart/php.html) and a client of that example.\n\n## Bootstrap\n\nThis has been tested with PHP7 on OS X.  To install the prerequisites using \nhomebrew:\n\n```shell\nbrew tap homebrew/php\nbrew install php71 --without-apache --with-fpm\nbrew install homebrew/php/php71-grpc\nbrew install homebrew/php/php71-protobuf\n```\n\nThe [gRPC quickstart guide](https://grpc.io/docs/quickstart/php.html) has instructions for Linux.\n\n## Testing\n\nClone, build, and run [grpc-fastcgi-proxy](https://github.com/bakins/grpc-fastcgi-proxy).\n\nIt should use `index.php` in the repository for it's script file. So run something like:\n\n```shell\ngrpc-fastcgi-proxy $HOME/git/grpc-fastcgi-example/index.php\n```\n\nStart php-fpm. On OS X, `/usr/local/sbin/php71-fpm start`\n\nNow run `php ./greeter_client.php` (make sure you are using PHP 71).\n\n```shell\n$ php greeter_client.php\nHello world\n```\n\nThat's it.  It doesn't look like much, but this sent a gRPC request to `grpc-fastcgi-proxy`\nwhich proxied it to php-fpm and handled all the transcoding.\n\n## LICENSE\n\nSee [LICENSE](./LICENSE).\n\n## Acknowledgements\n\n- The PHP code is based on the [gRPC examples](https://github.com/grpc/grpc/tree/master/examples/php).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakins%2Fgrpc-fastcgi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakins%2Fgrpc-fastcgi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakins%2Fgrpc-fastcgi-example/lists"}