Skip to main content

How to install grpc for PHP in Platform.sh

Comments

2 comments

  • Chad Carlson

    Hi there!

    We have a section in our documentation covering Installing Custom PHP extensions. You won’t have access to apt-get on our containers.

    Our team also maintains a few example snippets for installing specific extensions that you can take a look at (swoole, relay, and phpredis).

    0
  • Matthias Van Woensel

    For future people getting to this article, I wrote a pecl tool that simplifies the building of custom extensions through pecl and also uses the PLATFORM_CACHE to speed up subsequent builds.

    Usage is as simple as

    hooks:
        build: |
            set -e  
            chmod +x pecl  
            ./pecl install grpc
    

    The pecl source code can be found on github and can be placed inside your project folder. Feel free to change it as you see fit.

    0

Please sign in to leave a comment.