You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,58 @@
2
2
3
3
:zap: PHP version manager written in rust
4
4
5
-
## :sparkles:Features
5
+
## Features
6
6
7
7
- No requirements for system PHP installation
8
8
- Cross-platform support (macOS, Linux)
9
-
- Automatically version switching with`.php-version`
9
+
- Automatically version switching via`.php-version`
10
10
11
-
## :wrench:Installation
11
+
## Installation
12
12
13
-
### shell setup
13
+
### Requirements
14
14
15
-
#### Bash or Zsh
15
+
- OS: Unix-like (Linux, macOS, BSD)
16
+
- shell: bash, zsh
17
+
-`curl`/`ps` instalation
18
+
19
+
### Manually
20
+
21
+
#### using a release binary
22
+
23
+
1. Download the [latest release binary](https://github.com/masan4444/phpup/releases) for your system
24
+
2. Make it available globally on `PATH` environment variable
25
+
26
+
#### using cargo
27
+
28
+
```
29
+
cargo install phpup
30
+
```
31
+
32
+
### Shell setup
16
33
17
34
Add the following to your `.bashrc` or `.zshrc`
18
35
19
36
```bash
20
-
eval"$(phpup init)"
37
+
eval"$(phpup init --auto --recursive)"
38
+
```
39
+
40
+
- To automatically run `phpup use` when a directory contains a `.php-version` file, add the `--auto`(long: `--auto-switch`) option.
41
+
- To search recursively for a `.php-version` file in a parent directory when running `phpup use` automatically, add the `--recursive`(long: `--recursive-version-file`) option.
0 commit comments