Как установить php5.6 в Macos Mojave 10.14.3
У нас есть старый проект Laravel. Это нуждается в php5.6 в Мохаве.
10:57 $ brew install php56
Error: No available formula with the name "php56"
It was migrated from homebrew/php to homebrew/core.
Мой вопрос заключается в том, как мне установить php56 и php56-mcrypt в Мохаве?
Вот инструкция по установке Laravel (ниже).
If you are using Valet, you are most likely using PHP 7.1 or above. As this project runs on Laravel 4.1, it is only compatible with PHP 5.6. If you try to run with PHP 7.1, you will run into deprecated function errors.
Run valet stop to stop services
Unlink your PHP 7.1 binaries with brew unlink php71
Install PHP 5.6 binaries brew install php56 php56-mcrypt
Running php -v should now return PHP 5.6.30
Run valet install to reconfigure and start services again
To switch back to PHP 7.1:
Run valet stop to stop services
Unlink your PHP 5.6 binaries with brew unlink php56
Link your PHP 7.1 binaries with brew link php71
Running php -v should now return PHP 7.1.6
Run valet install to reconfigure and start services again