Automic VaultAutomic Vault

brew

brew-php-switcher mit Homebrew installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für brew-php-switcher in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install brew-php-switcher

local Homebrew formula metadata

Überblick

Paketzusammenfassung

Switch Apache / Valet / CLI configs between PHP versions

Befehle und Aliase

  • brew-php-switcher
  • phpswitch.sh

Verlauf

Projektgeschichte und Nutzung

Brew PHP Switcher is a macOS shell utility for switching Homebrew-installed PHP versions across command-line, Apache, and Valet-oriented development setups.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2014: Repository created and v1.0 released.
  • 2019: v2.2 released during the PHP 7.x Homebrew era.
  • 2021: v2.4 released with continued PHP version updates.
  • 2024: v2.6 released.
  • 2026: Homebrew stable version reported as 2.6.

Related projects

  • Homebrew PHP formulae are the runtime packages switched by the tool.
  • Apache configuration is one of the script's central targets.
  • Valet configuration is supported through skip and target options documented in the README.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 1 Plattformziele verfügbar.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
brew-php-switchercliglobales Executable
phpswitch.shcliglobales Executable

Aktualität

Version und 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.

Seite generiert2026-07-09
Manager-Version2.6
Manager aktualisiert
lokale DatenOK
Upstreamaktuell
neueste erkannte Versionv2.6

https://github.com/philcook/brew-php-switcher

  • InfoNo package-manager update timestamp was available.niedrig Konfidenz

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:brew-php-switcher
Version2.6
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/brew-php-switcher
Homepagehttps://github.com/philcook/brew-php-switcher
Repositoryhttps://github.com/philcook/brew-php-switcher
Upstream-Dokumentationhttps://github.com/philcook/brew-php-switcher#readme
LizenzMIT
Quellarchivhttps://github.com/philcook/brew-php-switcher/archive/refs/tags/v2.6.tar.gz
Bottleverfügbar (auf all)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebrew-php-switcher
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment