Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section for regular install #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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