# PHP base image with grpc

**URL:** <https://community.temporal.io/t/php-base-image-with-grpc/18042>\
**Category:** Community Support\
**Created:** [July 28, 2025, 9:02pm UTC](https://community.temporal.io/t/php-base-image-with-grpc/18042 "2025-07-28T21:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChallaPradyumna](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/challapradyumna/32/5491_2.png) [@ChallaPradyumna](https://community.temporal.io/u/ChallaPradyumna)\
**Post date:** [July 28, 2025, 9:02pm UTC](https://community.temporal.io/t/php-base-image-with-grpc/18042/1 "2025-07-28T21:02:08Z")

</div>

This is more of a request than a support question, let me know if i have to make this request somewhere else.

GRPC and protobuf are required to run temporal with php. As of now there is no php docker image that comes with a prebuilt grpc and protobuf modules installed. The issue is that installing grpc from pecl takes 20-30 minutes, unless cached strategically or using a multi stage builds.

Temporal team can host a php docker image which comes with these prebuilt it will make a world of difference in developer experience.

This issue has been highlighted and people have found their own way around it ( [https://github.com/grpc/grpc/issues/34278](https://github.com/grpc/grpc/issues/34278) )but it would be great if there an official source which will be maintained for this.

---

<div class="post-metadata">

**Author:** ![clegginabox](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/clegginabox/32/8043_2.png) [@clegginabox](https://community.temporal.io/u/clegginabox)\
**Post date:** [December 16, 2025, 4:55pm UTC](https://community.temporal.io/t/php-base-image-with-grpc/18042/2 "2025-12-16T16:55:42Z")

</div>

I made this because of the issue you’re talking about

> **[clegginabox/php-grpc - Docker Image](https://hub.docker.com/r/clegginabox/php-grpc)**

images are built from the below GitHub repo. I just grab the base image and then install gRPC. Nothing else

> **[GitHub - clegginabox/php-grpc: This repository provides PHP Docker images based...](https://github.com/clegginabox/php-grpc)**
>
> This repository provides PHP Docker images based on official PHP images, but with GRPC extension pre-compiled and installed. This saves significant build time in your projects since GRPC compilation can take several minutes.
