Documentation 📘

Learn how to install and use phpv, the fast PHP version manager for developers.

Installation

macOS/Linux

$ curl -sSL https://phpv.sh/install | bash
$ source ~/.bashrc # or zshrc

Verify installation:

$ phpv --version

Windows (WSL)

$ scoop install phpv
$ phpv install 8.2

Ensure your WSL2 environment has internet access.

Core Commands

Install a version

$ phpv install <version>
# Example
$ phpv install 8.3

Installs PHP version and adds to system-wide configuration.

Switch versions

$ phpv use <version>

Sets version for current terminal session.

$ phpv default <version>

Sets system-wide default version.

List versions

$ phpv list

Shows available versions and current selection.

Project-Specific Setup

💡 Create a .phpv file in your project root
.phpv
8.2

Add this file to your version control for consistent versioning across team members.

```