
PVM
PHP Version Manager for windows
9 followers
PHP Version Manager for windows
9 followers
PVM is a lightweight PHP Version Manager for Windows. Install, switch, and manage multiple PHP versions — plus extensions and ini settings — all from PowerShell, no dependencies required.



Free
Launch Team

Build your Framer site from Claude, Codex or CursorYour AI agent builds it. You review before it goes live.
Promoted
Hey PHP people
PVM v2.8.0 is here!
https://github.com/usepvm/pvm/releases/tag/v2.8.0
🎉 Major Features
📦 Multiple PHP Version Management
Install multiple PHP versions in one command
Uninstall multiple PHP versions in one command
Improve result reporting for batch operations
🧩 Extension Management
Added pvm ini ext info to display information about extensions
Improved extension selection and installation
Improved matching and handling of duplicate extension names
Validate that the selected source supports the requested extension
🔄 Cache and Log Management
Added pvm list --update to manually refresh the available PHP versions cache
Added pvm log --clear to clear the log, with confirmation before clearing
Added -y/--yes support to skip the log-clear confirmation
🔊 Sound Notifications
Added optional sound notifications to user confirmation prompts
Kept sounds disabled by default and support muting where applicable
🐘 PHP 8.5 Compatibility
Improved opcache status handling for PHP 8.5 and later
🔧 Improvements
⚙️ Configuration and Runtime
Centralized PVM configuration and improved configuration handling
Improved cache naming, validation, and available-version fetching
Improved output handling, quiet-mode behavior, and command result reporting
🧪 Testing & Quality
Expanded and reorganized automated test coverage
Improved test helpers and test-path setup
Improved compatibility and consistency across PowerShell versions
🐛 Bug Fixes
Improved exception handling and error messages
Fixed edge cases in extension matching, command output, and file operations
Improved failure reporting for batch operations
📝 Documentation
Updated command help and examples for the new and improved commands
Updated documentation for cache, extension, and multi-version operations
Hey PHP people
PVM v2.9.0 is here!
https://github.com/usepvm/pvm/releases/tag/v2.9.0
🎉 Major Features
💾 INI Backup and Restore
Added pvm ini backup to create timestamped backups of php.ini
Added pvm ini backup --clear to remove older backups while retaining recent ones
Added pvm ini restore to select and restore a backup
Automatically back up php.ini before configuration and extension changes
Added configurable backup retention through INI_BACKUP_MAX_DAYS and INI_BACKUP_KEEP_COUNT
✅ Safer Downloads and Storage
Check available disk space before PHP and extension downloads, cache updates, and profile operations
Verify downloaded PHP archives using SHA-256 checksums
Use temporary directories for download and installation work, and clean them up after commands complete
🔧 Improvements
🛡️ Error Handling and File Operations
Improve error reporting for failed file reads, writes, copies, removals, and other I/O operations
Improve exception handling and return values in command wrappers
Include more context in error messages and logs
Improve handling of temporary files and invalid paths
🧪 Testing & Quality
Validate test-drive paths before running tests
Improve test initialization and cleanup
Add global test-result reporting for test runs and scripts
Expand tests for I/O, download, backup, and failure-handling scenarios
📂 Runtime State
Move runtime state files from storage/state to storage/data/state
The state files include the PATH backup and update-check timestamp
🐛 Bug Fixes
Improve cleanup of temporary directories after command completion
Improve failure handling for downloads and filesystem operations
Avoid clearing the log when it is already empty
📝 Documentation
Document INI backup and restore commands and backup-retention settings
Update documentation for storage paths and safer download behavior
⚠️ Upgrade Notes
Runtime state is now stored under storage/data/state instead of storage/state. Review existing state files when upgrading, especially path.bak.log; move existing files to the new state directory if they need to be retained.
Hey PHP people
PVM v2.5.0 is here!
https://github.com/usepvm/pvm/releases/tag/v2.5.0
New Features
Install PHP and extensions by OS architecture (x86/x64)
Filter PHP versions and installs by build type (NTS/TS)
Profile management command to save and load predefined configurations
Get-OrUpdateCache helper for cleaner cache management
Xdebug: arch/buildtype metadata, sorting, compiler version display, and alpha version support
Include NTS versions in PHP listing and install commands
Improvements
Refactored install, uninstall, use, and list commands for clarity
Extension fetching now handles multi-page categories and caches heavy requests
Smarter arch and buildtype resolution with dedicated helpers (Resolve-Arch, Resolve-BuildType)
Cache validity check with Can-Use-Cache
Improved test coverage across router, common, install, list, current, ini, and use modules
Bug Fixes
Fixed arch and buildtype filtering logic
Fixed HTTPS request issues on Windows 10 (fallback to HTTP)
Fixed dynamic property assignment and null object handling
Fixed various typos and function naming inconsistencies
Corrected extension existence check to prioritize ./ext directory before ini file
Hey PHP people
PVM v2.6.0 is here!
https://github.com/usepvm/pvm/releases/tag/v2.6.0
What's New
pvm aliases command — user-editable aliases persisted in JSON
pvm cache command — manage cache files
pvm repair command — recreate missing PVM dirs and files
pvm profile clear sub-command
pvm install latest — install latest PHP version
Colon-style nested command syntax (pvm ini:get, pvm ini:set, etc.)
pvm info now consolidates PVM status and paths
Improvements
Config refactored into unified $Global:PVMConfig nested hashtable
Extensions and settings helpers unified with Get-All-* / Get-Matching-* pattern
Start-PVM dispatch pipeline refactored; Resolve-FlagCommand as single source of truth for flag mapping
Resolve-Alias with comprehensive alias map and JSON persistence
Setup-PVM decomposed into New-PVM-Directories / New-PVM-Files
NTS build type support across install, list, and use commands
Pester test architecture standardized across all modules
Expanded documentation and examples.
Bug Fixes
Shallow copy bug in test config setup
PSCustomObject vs OrderedDictionary deserialization after JSON alias persistence
-match vs -contains fix on array flag resolution
ini-only extension detection fix
Added -NoProfile to pvm.bat and subprocess
Hey PHP people
PVM v2.7.0 is here!
https://github.com/usepvm/pvm/releases/tag/v2.7.0
🔊 Sound Notifications
Added optional sound notifications for command completion, test results, and failures
Added the SOUNDS_DISABLED environment flag to toggle notifications
Added --mute to temporarily disable sounds for individual test and run commands
Sounds are automatically disabled in subprocess mode
📜 Test Scripts
Added the new run command for executing reusable project scripts, similar to npm or Composer scripts
Added support for custom files in the run command
Scripts can be defined and customized through storage/data/templates/scripts.json
Added visual feedback with a spinner during script execution
⚡ Background Jobs & Performance
Added background jobs for long-running operations such as PHP version and extension data fetching
Added Show-SpinnerWhileJob for visual feedback during long-running operations
Improved job serialization and data handling
Improved responsiveness during network-bound operations
🔧 Improvements
🧹 PowerShell Naming Convention
Renamed functions to use approved PowerShell verbs and the Verb-Noun convention
Refactored related helpers and wrappers for improved consistency
Improved code consistency and maintainability
⚙️ Configuration & Data Handling
Added Copy-ObjectDeep for proper deep-copy operations
Added filtering of invalid arguments and flags
Improved extension search with description property checking
Improved caching for PHP versions and extension data, including cache validation and duplicate-file handling
🧪 Testing & Quality
Expanded test coverage for new features and refactored components
Improved compatibility across Windows PowerShell 5.1 and PowerShell 7+
Added support for testing against multiple Pester versions, including Pester 5.7 and 6
Improved test execution across different PowerShell/Pester combinations
Added tests for setFakePaths, sound notifications, wrappers, and new helpers
Improved test data validation with Test-HasData
Added total test count reporting
✨ User Experience
Refactored the help section and improved help output
Improved color selection and output formatting
Sorted extensions list before printing
Enhanced info command with environment and PVM configuration data
🐛 Bug Fixes
Fixed PVMConfig values being unintentionally overridden through shallow copies
Improved error handling for run scripts
Fixed argument handling for older PowerShell versions
Fixed child processes not being terminated when the parent process exits
📝 Documentation
Updated documentation for the new run command and test scripts
Added documentation for sound notifications and configuration
Updated profile examples and configuration files
Improved command help and usage information