v1.7.0
Added
- New
phpvm currentcommand: Display the currently active PHP version. Returns the version string, "system", or "none" depending on state. - New
phpvm which [version]command: Show the full path to the PHP binary for a given version. Supports all package managers (brew, apt, dnf, yum, pacman). - New
phpvm deactivatecommand: Temporarily disable phpvm management and restore the original PATH. Useful for debugging or temporarily using system defaults. - New
lsalias forlist: Addedphpvm lsas an alias forphpvm listfor convenience. - Specific exit codes: Implemented consistent exit codes across all commands for better scripting support:
0- Success1- General error2- Invalid argument or usage error3- Version not found (not available)4- Version not installed locally5- File or permission error127- Unknown command
- Exit code documentation: Added exit codes section to help output.
- PATH preservation:
phpvm usenow stores the original PATH on first activation to enable proper deactivation.
Changed
- Enhanced help output: Updated help text with new commands, examples, and exit code documentation.
- Improved error handling: Key functions now return specific exit codes instead of generic error codes.
Full Changelog: v1.6.0...1.7.0