1
1
[ ![ PHP Version Manager (phpvm)] ( ./assets/Banner.jpg )] ( https://github.com/Thavarshan/phpvm )
2
2
3
+ # PHP Version Manager (phpvm)
4
+
3
5
[ ![ Version] ( https://img.shields.io/badge/version-v0.0.1-yellow.svg )] ( https://github.com/Thavarshan/phpvm/releases )
4
6
[ ![ Tests] ( https://github.com/Thavarshan/phpvm/actions/workflows/test.yml/badge.svg?label=test&branch=main )] ( https://github.com/Thavarshan/phpvm/actions/workflows/test.yml )
5
7
[ ![ Build] ( https://github.com/Thavarshan/phpvm/actions/workflows/use.yml/badge.svg?label=build&branch=main )] ( https://github.com/Thavarshan/phpvm/actions/workflows/use.yml )
@@ -81,7 +83,7 @@ This script clones the `phpvm` repository into `~/.phpvm` and attempts to add th
81
83
82
84
``` sh
83
85
export PHPVM_DIR=" $HOME /.phpvm"
84
- [[ -s " $PHPVM_DIR /index.js " ]] && export PATH=" $PHPVM_DIR / bin:$PATH " && node " $PHPVM_DIR /index.js "
86
+ export PATH=" $HOME /.local/ bin:$PATH "
85
87
```
86
88
87
89
### Verify Installation
@@ -106,7 +108,7 @@ Then add the following lines to your shell's profile (`~/.bashrc`, `~/.zshrc`, e
106
108
107
109
``` sh
108
110
export PHPVM_DIR=" $HOME /.phpvm"
109
- [[ -s " $PHPVM_DIR /index.js " ]] && export PATH=" $PHPVM_DIR / bin:$PATH " && node " $PHPVM_DIR /index.js "
111
+ export PATH=" $HOME /.local/ bin:$PATH "
110
112
```
111
113
112
114
### Manual Update
@@ -117,7 +119,6 @@ To manually update `phpvm` to the latest version, use the following commands:
117
119
cd ~ /.phpvm
118
120
git fetch --tags origin
119
121
git checkout ` git describe --abbrev=0 --tags`
120
- source ~ /.phpvm/index.js
121
122
```
122
123
123
124
## Usage
@@ -233,7 +234,7 @@ And remove the following lines from your shell's profile:
233
234
234
235
``` sh
235
236
export PHPVM_DIR=" $HOME /.phpvm"
236
- [[ -s " $PHPVM_DIR /index.js " ]] && export PATH=" $PHPVM_DIR / bin:$PATH " && node " $PHPVM_DIR /index.js "
237
+ export PATH=" $HOME /.local/ bin:$PATH "
237
238
```
238
239
239
240
## Troubleshooting
0 commit comments