Automic VaultAutomic Vault

brew

brew-php-switcher を Homebrew でインストール

brew-php-switcher のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install brew-php-switcher

local Homebrew formula metadata

概要

パッケージ概要

Switch Apache / Valet / CLI configs between PHP versions

コマンドとエイリアス

  • brew-php-switcher
  • phpswitch.sh

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

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

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
brew-php-switchercliグローバル実行可能ファイル
phpswitch.shcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-09
マネージャ版2.6
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v2.6

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

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:brew-php-switcher
バージョン2.6
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/brew-php-switcher
ホームページhttps://github.com/philcook/brew-php-switcher
リポジトリhttps://github.com/philcook/brew-php-switcher
上流ドキュメントhttps://github.com/philcook/brew-php-switcher#readme
ライセンスMIT
ソースアーカイブhttps://github.com/philcook/brew-php-switcher/archive/refs/tags/v2.6.tar.gz
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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