Skip to content

Instantly share code, notes, and snippets.

@ngohuytrieu
Last active March 3, 2022 10:11
Show Gist options
  • Save ngohuytrieu/5b5c8ba49c78d9247d500db400fd6c7a to your computer and use it in GitHub Desktop.
Save ngohuytrieu/5b5c8ba49c78d9247d500db400fd6c7a to your computer and use it in GitHub Desktop.
macOS install php@7.2

macOS install php@7.2

Since PHP 7.2 is not supported anymore, it's got delisted from the Hombrew core repository.

You've to find a third-party repository that still contains an older PHP version, such as the shivammathur/php repository.

You need to tap the repository like this in your Homebrew:

brew tap shivammathur/php

Then you can install PHP 7.2 like this:

brew install shivammathur/php/php@7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment