32

Because php 5.6 is EOL from 01.01.2019, it was removed from homebrew.

How can I install it with homebrew even if it is not in core?

Cœur
  • 32,421
  • 21
  • 173
  • 232
Octavian Popa
  • 421
  • 1
  • 4
  • 6
  • 17
    `brew tap exolnet/homebrew-deprecated; brew install php@5.6` – Clive Jan 11 '19 at 09:38
  • This question is duplicated : https://stackoverflow.com/questions/49649693/install-php-extension-for-php-5-6-on-osx-with-deprecated-homebrew-php/54466200#54466200 – emamie Jul 16 '19 at 07:23
  • 1
    Possible duplicate of [Install PHP Extension for PHP 5.6 on OSX with deprecated homebrew/php](https://stackoverflow.com/questions/49649693/install-php-extension-for-php-5-6-on-osx-with-deprecated-homebrew-php) – Handfeger Jul 29 '19 at 09:25

3 Answers3

49
brew tap exolnet/homebrew-deprecated

brew install php@5.6

source: https://joostvanveen.com/a-29/install-and-configure-multiple-php-versions-on-mojave-with-homebrew

nataprawiraf
  • 491
  • 3
  • 3
6

I just used shivammathur/homebrew-php without any problems.

brew tap shivammathur/php
brew install shivammathur/php/php@5.6

The repository is on Github: https://github.com/shivammathur/homebrew-php

(the exolnet/homebrew-deprecated mentioned in other answers doesn't seem to work anymore)

marc.guenther
  • 1,837
  • 1
  • 16
  • 15
0

I tried exolnet/homebrew-deprecated but it have some problem with xdebug & pecl. So I recommend you use official one.

Ref this because of long post:

Huy Phan
  • 53
  • 2
  • From Review: Hi, while links are great way of sharing knowledge, they won't really answer the question if they get broken in the future. Add to your answer the essential content of the link which answers the question. In case the content is too complex or too big to fit here, describe the general idea of the proposed solution. Remember to always keep a link reference to the original solution's website. See: [How do I write a good answer?](https://stackoverflow.com/help/how-to-answer) – sɐunıɔןɐqɐp Jul 21 '20 at 11:32