PHPVersion Docs

PHPVersion Documentation

Comprehensive guides, tutorials, and references to help you manage PHP versions with ease.

Overview

What is PHPVersion?

PHPVersion is a command-line tool that lets you easily install and switch between multiple versions of PHP, making it ideal for testing and development. It works seamlessly on macOS, Windows, and Linux.

Key Features

  • Instant PHP version switching
  • Zero-configuration environment setup
  • Cross-platform compatibility
  • Integration with Composer & frameworks

Getting Started

Installation

$ brew install phpversion  # macOS/Linux
$ install-phpversion.ps1  # Windows PowerShell
                    

After installation, initialize PHPVersion by running phpversion --init to set up shell integration.

User Guides

Switch PHP Versions

$ phpversion 8.3 ✅ Switched to PHP 8.3 in current shell

Use this command to instantly switch between installed versions for different projects or testing.

Install New Version

$ phpversion install 8.4 Downloading php-8.4.tar.gz... ✅ Installed PHP 8.4 to ~/.phpversion/versions

New versions are downloaded and installed to isolated directories, keeping your environment clean.

Frequently Asked Questions

How do I check available versions?

Run phpversion list to see all installed and available versions you can switch to.

Can I use PHPVersion with Docker?
Where are versions stored?

Need More Help?

Check out our detailed guides and contact support if you have more technical questions.

Contact Support