Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created November 13, 2023 10:18
Show Gist options
  • Save vladdancer/642889f53f443260421a2616440ccd80 to your computer and use it in GitHub Desktop.
Save vladdancer/642889f53f443260421a2616440ccd80 to your computer and use it in GitHub Desktop.
Install php-spx on lando
appserver:
build_as_root:
- 'mkdir -p /usr/src/php/ext && cd /usr/src/php/ext && git clone https://github.com/NoiseByNorthwest/php-spx.git spx && cd spx/ && git checkout release/latest'
- 'cd /usr/src/php/ext/spx && phpize && ./configure'
- docker-php-ext-install spx
- echo 'spx.http_enabled=1' >> /usr/local/etc/php/conf.d/docker-php-ext-spx.ini
- echo 'spx.http_key="dev"' >> /usr/local/etc/php/conf.d/docker-php-ext-spx.ini
- echo 'spx.http_ip_whitelist="*"' >> /usr/local/etc/php/conf.d/docker-php-ext-spx.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment