Software⏱️ 2 min read📅 2026-06-03

How to Fix: Error: php@7.3 has been disabled because it is a versioned formula

Brew php@7.3 versioned formula error solution.

Quick Answer: Try using the non-versioned formula 'php' instead, e.g., brew install php.

The error message 'php@7.3 has been disabled because it is a versioned formula' indicates that the PHP version you're trying to install is not available for installation through Homebrew due to security concerns.

💡 Why You Are Getting This Error

  • Homebrew has strict policies against installing versioned formulas, which can be exploited by attackers for malicious purposes.

🛠️ Step-by-Step Verified Fixes

Method 1: Use a different PHP version

  1. Step 1: Try installing the latest version of PHP available on Homebrew, such as php@7.4 or later.

Method 2: Use a third-party repository

  1. Step 1: Install the Homebrew formula repository using brew install homebrew_formula.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'php@7.3 has been disabled because it is a versioned formula' error and successfully install PHP on your system.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions