无法使用自制软件安装 php (MacOs)

Can't install php using homebrew (MacOs)

我尝试使用自制软件 (https://formulae.brew.sh/formula/php) 在 MacO 上安装 php,但每次出现以下错误:

Warning: No available formula or cask with the name "php".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

而使用brew search php时我只能找到phpstorm和eclipse-php。 为什么我无法使用自制软件在 MacO 上找到或安装 php? 提前致谢!

旁注:我已经将自制软件更新到最新版本并检查了 github 上的公式,最后一次提交是在 6 天前 https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb

张贴来自 https://githubmemory.com/repo/Homebrew/homebrew-core/issues/77629 的答案以防得到 deleted/removed。

所有应归功于原始海报。 :)

rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core
brew update