Skip to content

Commit 09203d1

Browse files
committed
Update installation instructions in README for asdf-php
1 parent 7f4d382 commit 09203d1

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,34 @@ for us to support them.
2020

2121
## Installation
2222

23+
After installing [asdf](https://asdf-vm.com/guide/getting-started.html), install the plugin by running:
24+
2325
```bash
2426
asdf plugin add php https://github.com/asdf-community/asdf-php.git
2527
```
2628

29+
or update an existing installation:
30+
31+
```bash
32+
asdf plugin update php
33+
```
34+
35+
Then use `asdf-php` to manage php:
36+
37+
```bash
38+
# Show all installable versions
39+
asdf list all php
40+
41+
# Install specific version
42+
asdf install php 8.5.0
43+
44+
# or install latest tagged version with
45+
asdf install php latest
46+
47+
# Set a version globally (on your ~/.tool-versions file)
48+
asdf set --home php latest
49+
```
50+
2751
## Note
2852

2953
Composer is installed globally alongside PHP by default. If your application requires additional php extensions, you may need to install them via `pecl`. For example:

0 commit comments

Comments
 (0)