{"id":51048324,"url":"https://github.com/rindow/phpvenv","last_synced_at":"2026-06-22T15:01:58.118Z","repository":{"id":358039719,"uuid":"1239679707","full_name":"rindow/phpvenv","owner":"rindow","description":"A lightweight virtual environment manager for PHP","archived":false,"fork":false,"pushed_at":"2026-05-15T11:51:53.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T12:29:03.484Z","etag":null,"topics":["cli","composer","cross-platform","devtools","php","php-ini","venv","virtual-environment","windows"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rindow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T10:30:34.000Z","updated_at":"2026-05-15T11:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rindow/phpvenv","commit_stats":null,"previous_names":["rindow/phpvenv"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rindow/phpvenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rindow%2Fphpvenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rindow%2Fphpvenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rindow%2Fphpvenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rindow%2Fphpvenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rindow","download_url":"https://codeload.github.com/rindow/phpvenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rindow%2Fphpvenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34653715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","composer","cross-platform","devtools","php","php-ini","venv","virtual-environment","windows"],"created_at":"2026-06-22T15:01:56.823Z","updated_at":"2026-06-22T15:01:58.113Z","avatar_url":"https://github.com/rindow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpvenv\n\nA lightweight tool to create isolated PHP virtual environments, inspired by Python's `venv`. \n\nIt allows you to create a local environment with its own configuration (`php.ini`) and local Composer home, without affecting the system-wide PHP installation.\n\n## Features\n\n- Isolated `php.ini` and configuration directory (`conf.d`).\n- Environment-specific `COMPOSER_HOME`.\n- Support for Bash, Zsh, Command Prompt (CMD), and PowerShell.\n- Automatic wrapper scripts to ensure the correct configuration is used.\n- Supports multiple installed PHP versions. The virtual environment automatically uses the same PHP interpreter that was used when running `phpvenv`.\n\n## Installation\n\nYou can install this tool globally using Composer:\n\n```bash\ncomposer global require rindow/phpvenv\n```\n\nEnsure your global composer bin directory is in your `PATH`.\n\n## Usage\n\n### 1. Create a new environment\n\n```bash\nphpvenv myenv\n```\n\n### 2. Activate the environment\n\n**On Unix (Bash/Zsh):**\n```bash\nsource myenv/bin/activate\n```\n\n**On Windows (Command Prompt):**\n```cmd\nmyenv\\Scripts\\activate.bat\n```\n\n**On Windows (PowerShell):**\n```powershell\n. \\myenv\\Scripts\\Activate.ps1\n```\n\n### 3. Deactivate\n\nSimply run:\n```bash\ndeactivate\n```\n\n### 4. Multiple PHP Versions\n\nIf your system has multiple PHP versions installed, `phpvenv` can create environments tied to a specific PHP interpreter.\n\nThe generated virtual environment stores the path to the PHP executable used during creation (PHP_BINARY) and always uses that interpreter inside the environment.\n\n**Example:**\n\n```bash\nphp8.2 /installed/dir/phpvenv env82\nphp8.4 /installed/dir/phpvenv env84\n```\n\n**After activation:**\n```bash\nsource env82/bin/activate\nphp -v\n# PHP 8.2.x\n\nsource env84/bin/activate\nphp -v\n# PHP 8.4.x\n```\n\n## Note\n\nThe environment does not bundle PHP itself.\nInstead, it creates wrapper scripts that forward execution to the PHP binary used at environment creation time.\n\n## License\n[BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frindow%2Fphpvenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frindow%2Fphpvenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frindow%2Fphpvenv/lists"}