# phpenv/phpenv

Simple PHP version management

Repository: https://github.com/phpenv/phpenv
Canonical: https://ross.abutalabs.com/products/phpenv
Language: Shell
License: MIT
License Family: permissive
Topics: php, hacktoberfest, tools
Last push: 2026-07-30T21:45:31+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 63, longevity 100
- inputs: {"age_days": 5243, "days_push": 34, "days_rel": 34, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1865, forks 143 (observed 2026-08-28T04:05:46.218439+00:00)

## What it is
phpenv is a shell-based PHP version manager inspired by rbenv, letting developers install and switch between multiple PHP builds per project via a .php-version file. It supports custom build configurations, PECL extensions, and extensibility through bash plugins.

## Use cases
- manage multiple PHP versions on one machine
- switch PHP version per project directory
- build PHP from source with custom configure options
- install PECL extensions into specific PHP versions
- run older PHP versions to test script compatibility
- pin a PHP version for a project via .php-version file

## When to choose
- you need multiple PHP versions side by side on macOS or Linux
- you want per-project PHP version pinning like rbenv for Ruby
- you need custom PHP builds with specific extensions or configure flags

## When to avoid
- you only ever need one PHP version
- you want prebuilt binaries without compiling PHP from source
- you need PHP version management on Windows

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli, plugin-system
- domain: developer-tools, programming-languages
- platform: cli
- tags: php-version-manager, version-management, shell, rbenv-inspired, php-build, command-line, linux, macos

## Member repositories
- phpenv/phpenv (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.218439+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:35.300548+00:00, confidence not recorded.
  - readme: https://github.com/phpenv/phpenv (fetched 2026-08-28T04:05:46.218439+00:00, sha abd7c165785a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
