Skip to content

v1.7.0

Choose a tag to compare

@Thavarshan Thavarshan released this 11 Dec 16:32
· 30 commits to main since this release

Added

  • New phpvm current command: 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 deactivate command: Temporarily disable phpvm management and restore the original PATH. Useful for debugging or temporarily using system defaults.
  • New ls alias for list: Added phpvm ls as an alias for phpvm list for convenience.
  • Specific exit codes: Implemented consistent exit codes across all commands for better scripting support:
    • 0 - Success
    • 1 - General error
    • 2 - Invalid argument or usage error
    • 3 - Version not found (not available)
    • 4 - Version not installed locally
    • 5 - File or permission error
    • 127 - Unknown command
  • Exit code documentation: Added exit codes section to help output.
  • PATH preservation: phpvm use now 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