macOS
brew install brew-php-switcherlocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für brew-php-switcher in AI-Agent-Workflows.
Installation
brew install brew-php-switcherlocal Homebrew formula metadata
Überblick
Switch Apache / Valet / CLI configs between PHP versions
Verlauf
Brew PHP Switcher is a macOS shell utility for switching Homebrew-installed PHP versions across command-line, Apache, and Valet-oriented development setups.
The project was created in March 2014 and published v1.0 in April 2014. Its README frames the tool as a one-command answer for developers supporting multiple PHP projects that require different PHP major versions.
The script tracks Homebrew PHP layout changes over time. The README documents support for older PHP 5.6 and 7.x versions through modern 8.x versions, and recent commits mention Apple Silicon Homebrew Apache path handling.
The package gained a durable niche among macOS PHP developers because it automated edits that were otherwise easy to get wrong: Apache module lines, CLI symlinks, and optional Valet configuration. GitHub metadata shows over a thousand stars, and Homebrew analytics reported thousands of installs over the prior year at lookup time.
Users install it with Homebrew and run commands such as `brew-php-switcher 8.3` or `brew-php-switcher 5.6`. Options allow skipping Apache or Valet changes, or targeting only a specific config area.
The package is a classic Homebrew-era local development helper: small shell code wrapped as a formula, solving the impedance mismatch between language runtime versions and macOS web-server configuration. It is historically tied to the long tail of PHP projects that require multiple runtime versions on one laptop.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
brew-php-switcher | cli | globales Executable | |
phpswitch.sh | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/philcook/brew-php-switcher
Installationsmetadaten
| Paketschlüssel | brew:brew-php-switcher |
|---|---|
| Version | 2.6 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/brew-php-switcher |
| Homepage | https://github.com/philcook/brew-php-switcher |
| Repository | https://github.com/philcook/brew-php-switcher |
| Upstream-Dokumentation | https://github.com/philcook/brew-php-switcher#readme |
| Lizenz | MIT |
| Quellarchiv | https://github.com/philcook/brew-php-switcher/archive/refs/tags/v2.6.tar.gz |
| Bottle | verfügbar (auf all) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | brew-php-switcher |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Quellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.