Question: 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?

Answer: 
```
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>
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:

* <https://devhoi.com/threads/install-brew-deprecated-php-version-php-7-1-5-6-7-0-on-brew-macos.25/>
* <https://devhoi.com/threads/how-to-install-old-deprecated-packages-on-brew.32/>