Download the PHP package rindow/phpvenv without Composer
On this page you can find all versions of the php package rindow/phpvenv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rindow/phpvenv
More information about rindow/phpvenv
Files in rindow/phpvenv
Package phpvenv
Short Description A lightweight virtual environment manager for PHP.
License BSD-3-Clause
Homepage https://github.com/rindow/phpvenv
Informations about the package phpvenv
phpvenv
A lightweight tool to create isolated PHP virtual environments, inspired by Python's venv.
It allows you to create a local environment with its own configuration (php.ini) and local Composer home, without affecting the system-wide PHP installation.
Features
- Isolated
php.iniand configuration directory (conf.d). - Environment-specific
COMPOSER_HOME. - Support for Bash, Zsh, Command Prompt (CMD), and PowerShell.
- Automatic wrapper scripts to ensure the correct configuration is used.
- Supports multiple installed PHP versions. The virtual environment automatically uses the same PHP interpreter that was used when running
phpvenv.
Installation
You can install this tool globally using Composer:
Ensure your global composer bin directory is in your PATH.
Usage
1. Create a new environment
2. Activate the environment
On Unix (Bash/Zsh):
On Windows (Command Prompt):
On Windows (PowerShell):
3. Deactivate
Simply run:
4. Multiple PHP Versions
If your system has multiple PHP versions installed, phpvenv can create environments tied to a specific PHP interpreter.
The generated virtual environment stores the path to the PHP executable used during creation (PHP_BINARY) and always uses that interpreter inside the environment.
Example:
After activation:
Note
The environment does not bundle PHP itself. Instead, it creates wrapper scripts that forward execution to the PHP binary used at environment creation time.