Skip to content

Instantly share code, notes, and snippets.

@idokd
Last active April 19, 2022 19:19
Show Gist options
  • Select an option

  • Save idokd/2debd77752e096306eb940c86bdbd27e to your computer and use it in GitHub Desktop.

Select an option

Save idokd/2debd77752e096306eb940c86bdbd27e to your computer and use it in GitHub Desktop.
Install gRPC for PHP on ddev docker image
ddev ssh
sudo apt-get install build-essential autoconf zlib1g-dev php-dev php-pear
sudo pecl channel-update pecl.php.net
sudo pecl install grpc
# Add this to php.ini
#extension=grpc.so
#echo "extension=grpc.so" > /etc/php/8.0/cli/conf.d/20-grpc.ini
#composer require "grpc/grpc"
sudo pecl install protobuf
# Add this to php.ini
#extension=protobuf.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment