Introduction
In this article, I will try to demonstrate how to easily manage PHP versions using Brew in a macOS system.
Background
I noticed that many people are unaware of how to manage PHP versions on their local machines. You don’t have to use docker for PHP version management.
Install
You can install PHP versions in two ways: without specifying a version (it will install the latest version), or by specifying a version, in which case it will install the specific PHP version you request.