This repository includes the latest PHP versions and packages for the elegant PHP development experience on Alpine Linux.
On Alpine Linux add a PHP.earth repository and make it trusted:
apk add --no-cache wget ca-certificates \
&& wget -O /etc/apk/keys/phpearth.rsa.pub https://repos.php.earth/alpine/phpearth.rsa.pub \
&& echo "https://repos.php.earth/alpine/v3.8" >> /etc/apk/repositories
PHP.earth packages are prefixed with php7.3
, php7.2
, and php7.1
:
apk search --no-cache php7.2*
For the previous version of Alpine:
apk add --no-cache wget ca-certificates \
&& wget -O /etc/apk/keys/phpearth.rsa.pub https://repos.php.earth/alpine/phpearth.rsa.pub \
&& echo "https://repos.php.earth/alpine/v3.7" >> /etc/apk/repositories
Alpine repository includes also a legacy PHP 7.0 version.
Detailed documentation is available at PHP.earth.
Contributions are most welcome. Just fork and send pull request or open an issue. This repository is licensed under the MIT license.