11[ ![ PHP Version Manager (phpvm)] ( ./assets/Banner.jpg )] ( https://github.com/Thavarshan/phpvm )
22
3+ # PHP Version Manager (phpvm)
4+
35[ ![ Version] ( https://img.shields.io/badge/version-v0.0.1-yellow.svg )] ( https://github.com/Thavarshan/phpvm/releases )
46[ ![ 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 )
57[ ![ 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
8183
8284``` sh
8385export 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 "
8587```
8688
8789### Verify Installation
@@ -106,7 +108,7 @@ Then add the following lines to your shell's profile (`~/.bashrc`, `~/.zshrc`, e
106108
107109``` sh
108110export 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 "
110112```
111113
112114### Manual Update
@@ -117,7 +119,6 @@ To manually update `phpvm` to the latest version, use the following commands:
117119cd ~ /.phpvm
118120git fetch --tags origin
119121git checkout ` git describe --abbrev=0 --tags`
120- source ~ /.phpvm/index.js
121122```
122123
123124## Usage
@@ -233,7 +234,7 @@ And remove the following lines from your shell's profile:
233234
234235``` sh
235236export 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 "
237238```
238239
239240## Troubleshooting
0 commit comments