@@ -95,24 +95,24 @@ If the installation was successful, it should output the path to `phpvm`.
9595
9696### Available Commands
9797
98- | Command | Description |
99- | --------------------------- | ------------------------------------------ |
100- | ` phpvm install [version] ` | Install a PHP version (reads ` .phpvmrc ` if no version given) |
98+ | Command | Description |
99+ | --------------------------- | ------------------------------------------------------------------------- |
100+ | ` phpvm install [version] ` | Install a PHP version (reads ` .phpvmrc ` if no version given) |
101101| ` phpvm use [version] ` | Switch PHP version (reads ` .phpvmrc ` → default alias if no version given) |
102- | ` phpvm uninstall <version> ` | Remove a specific PHP version |
103- | ` phpvm current ` | Display the currently active PHP version |
104- | ` phpvm which [version] ` | Show the path to PHP binary for a version |
105- | ` phpvm deactivate ` | Temporarily disable phpvm and restore PATH |
106- | ` phpvm system ` | Switch to system/Homebrew default PHP |
107- | ` phpvm auto ` | Auto-switch based on ` .phpvmrc ` file |
108- | ` phpvm list ` or ` phpvm ls ` | List all installed PHP versions |
109- | ` phpvm alias [name] [ver] ` | Create, update, or list version aliases |
110- | ` phpvm unalias <name> ` | Remove version alias |
111- | ` phpvm cache dir ` | Show phpvm cache directory |
112- | ` phpvm info ` | Show system information for debugging |
113- | ` phpvm version ` | Show version information |
114- | ` phpvm --version ` / ` -v ` | Show version information (aliases) |
115- | ` phpvm help ` | Show help message |
102+ | ` phpvm uninstall <version> ` | Remove a specific PHP version |
103+ | ` phpvm current ` | Display the currently active PHP version |
104+ | ` phpvm which [version] ` | Show the path to PHP binary for a version |
105+ | ` phpvm deactivate ` | Temporarily disable phpvm and restore PATH |
106+ | ` phpvm system ` | Switch to system/Homebrew default PHP |
107+ | ` phpvm auto ` | Auto-switch based on ` .phpvmrc ` file |
108+ | ` phpvm list ` or ` phpvm ls ` | List all installed PHP versions |
109+ | ` phpvm alias [name] [ver] ` | Create, update, or list version aliases |
110+ | ` phpvm unalias <name> ` | Remove version alias |
111+ | ` phpvm cache dir ` | Show phpvm cache directory |
112+ | ` phpvm info ` | Show system information for debugging |
113+ | ` phpvm version ` | Show version information |
114+ | ` phpvm --version ` / ` -v ` | Show version information (aliases) |
115+ | ` phpvm help ` | Show help message |
116116
117117### Installing PHP Versions
118118
341341| ` PHPVM_DIR ` | ` ~/.phpvm ` | Installation directory |
342342| ` PHPVM_AUTO_USE ` | ` true ` | Enable automatic ` .phpvmrc ` detection when sourced |
343343| ` PHPVM_PHPVMRC_MAX_DEPTH ` | ` 25 ` | Max parent directories to traverse when searching for ` .phpvmrc ` |
344- | ` DEBUG ` | ` false ` | Enable debug logging with timestamps |
344+ | ` PHPVM_DEBUG ` | ` false ` | Enable debug logging with timestamps |
345345| ` NO_COLOR ` | _ (unset)_ | Disable color output ([ no-color.org] ( https://no-color.org/ ) ) |
346346| ` PHPVM_LOG_TIMESTAMPS ` | ` false ` | Always show timestamps in log output |
347347
@@ -518,15 +518,15 @@ bats tests/01_core.bats
518518./phpvm.sh info
519519
520520# Test with debug output
521- DEBUG =true ./phpvm.sh version
521+ PHPVM_DEBUG =true ./phpvm.sh version
522522```
523523
524524### Debugging
525525
526- To enable debug output, set the ` DEBUG ` environment variable to ` true ` :
526+ To enable debug output, set the ` PHPVM_DEBUG ` environment variable to ` true ` :
527527
528528``` sh
529- DEBUG =true phpvm install 8.1
529+ PHPVM_DEBUG =true phpvm install 8.1
530530```
531531
532532## Maintainers
0 commit comments