Ross ROSS = Recommend OSS · open-source software intelligence for agents

philcook/brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only. observed · 2026-08-28

github.com/philcook/brew-php-switcher · Shell · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

64/100

  • Activity 92
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4557
  • days_rel: 642
  • days_push: 49
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

1007 stars · 92 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A simple shell script for macOS Homebrew users that switches PHP versions for both Apache and CLI with a single command, automatically rewriting the Apache module configuration. It supports PHP 5.6 through 8.5 and can also switch or skip Laravel Valet configuration.

Use cases

  • switch php versions on mac with homebrew
  • change apache and cli php version in one command
  • manage multiple php versions across legacy and new projects
  • stop editing apache config manually when switching php
  • switch php version for laravel valet
  • switch between php 7.4 and php 8.x locally

When to choose

  • you are on macOS and installed PHP via Homebrew
  • you support multiple projects that require different major PHP versions
  • you want Apache and Valet configs updated automatically when switching PHP
  • you want a single-command alternative to editing httpd.conf by hand

When to avoid

  • you are on Linux or Windows rather than macOS
  • your PHP is installed from source or a non-Homebrew package manager
  • you run Nginx instead of Apache since only Apache and Valet configs are handled
  • you need per-project PHP version pinning rather than machine-wide switching

Facets

cli-tool · maturity active

cli configuration-management developer-tools developer-tools web-development cli homebrew php version-switcher shell-script apache valet macos php-versions command-line

1 source

Member repositories

RepositoryRoleHealth v2
philcook/brew-php-switchermain64

For agents

markdown · JSON · MCP: product_card(name="philcook/brew-php-switcher")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem