# Installer brew-php-switcher avec Homebrew

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de brew-php-switcher pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:brew-php-switcher
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install brew-php-switcher
```

  Preuve: local Homebrew formula metadata

## Faits du paquet

- **Clé du paquet:** brew:brew-php-switcher
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.6
- **Résumé source:** Switch Apache / Valet / CLI configs between PHP versions
- **Page d'accueil:** <https://github.com/philcook/brew-php-switcher>
- **Dépôt:** <https://github.com/philcook/brew-php-switcher>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- brew-php-switcher (alias)
- phpswitch.sh (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.6
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://formulae.brew.sh/api/formula/brew-php-switcher.json>
- <https://github.com/philcook/brew-php-switcher>
- <https://raw.githubusercontent.com/philcook/brew-php-switcher/master/README.md>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/brew-php-switcher.yml](https://github.com/mxcl/pkgdb/blob/main/combined/brew-php-switcher.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
