diff --git a/README.md b/README.md index ae88d30..4a53e79 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,28 @@ The following code snippets are intended for quick usage on either shell scripts > Notice that `main` and `community` official repositories must be enabled. +## Example Installation +``` +wget https://php.hernandev.com/key/php-alpine.rsa.pub -O /etc/apk/keys/php-alpine.rsa.pub + +apk --update-cache add ca-certificates && \ + echo "https://php.hernandev.com/v3.15/php-8.1" >> /etc/apk/repositories + +apk add --update-cache php=8.1 +apk add php-phar=8.1 +apk add php-mbstring=8.1 +apk add php-iconv=8.1 +apk add php-openssl=8.1 +apk add php-curl=8.1 +apk add php-pdo_mysql=8.1 +apk add php-gettext=8.1 +apk add php-intl=8.1 +apk add php-sqlite3=8.1 + +#etc... + +``` + ### Dockerfile You may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway.