Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down