So once you have Homebrew installed on your macOS a particular PHP Homebrew formulae will need to be added from this maintainer, what is great about this, is all PHP versions are available whereas only some versions are available on the default Homebrew formulas.Īfter Homebrew install, follow the below: Add the PHP formulae brew tap shivammathur/phpĬhoose the PHP version – example uses 7.4 brew install shivammathur/php/ So moving forward the best solution is to use Homebrew to install and then choose whichever version of PHP you want including 7.4 and version 8. Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies PHP is included in macOS for compatibility with legacy software.įuture versions of macOS will not include PHP. You can see this by running a function in a webhosted file or running php -v on the command line. The latest macOS versions of Big Sur and Catalina currently ship with PHP 7.3 and have a deprecation notice that they intend to drop support for PHP altogether in a future upgrade.
0 Comments
Leave a Reply. |