Homebrew has in-house PHP formulae for all PHP versions.
brew install php
brew install php@8.0
...
But there's also a tap (shivammathur/homebrew-php) available to install PHP versions.
brew tap shivammathur/php
brew install shivammathur/php/php
brew install shivammathur/php/php@8.0
...
I've encountered a blog stating the following:
You can either use the built-in php recipe, but I recommend to use the shivammathur/homebrew-php tap.
This makes me wonder what the reasoning is behind the existence of shivammathur/homebrew-php and moreover why it's supposedly recommended over the in-house formulae?