I am trying to install PHP on macOS using Homebrew (https://formulae.brew.sh/formula/php), but every time I get the following error:
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.
And when using brew search php I can only find phpstorm and eclipse-php.
How come I can't find or install PHP on macOS using Homebrew?
Thanks in advance!
Side note: I have already updated Homebrew to the latest version and checked the formulae on GitHub, last commit was 6 days ago https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb