Installing PHP using Homebrew on a MAC

I am trying to install PHP on my MAC computer using Homebrew. I use the following command: brew install php

However, I get the following errors:

Error: No available formula with the name "php" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
+4
source share
1 answer

Update (March 2018)

In February 2018, the formula php72(the current version of PHP) was moved to the Homebrew core and renamed to php.

Installing PHP using Homebrew is now easier:

$ brew install php

The key is homebrew/php outdated and will be archived on March 31, 2018.

PHP , @ (PHP 7.1 php@7.1). homebrew/php .


PHP homebrew/php. ( 5.3 7.1), PHP .

PHP homebrew/php ( ):

$ brew tap homebrew/php
$ brew install php70

, :

$ brew install homebrew/php/php70

, php:

$ brew search php
+14

Source: https://habr.com/ru/post/1671164/


All Articles