Software⏱️ 2 min read📅 2026-05-31

How to Fix: Fatal error: Class 'NumberFormatter' not found

Learn how to fix: Fatal error: Class 'NumberFormatter' not found.

Quick Answer: Try checking your system settings or restarting.

The issue you're facing is due to the fact that PHP's built-in NumberFormatter class has been moved to the Intl extension in PHP 7.0.

🔍 Why This Happens

  • [Cause]

🛠️ Step-by-Step Verified Fixes

Method 1: Enable Intl Extension

  1. Step 1: Update your PHP configuration to enable the Intl extension. You can do this by adding the following line in your php.ini: extension=intl.so

Method 2: Use the Intl Class

  1. Step 1: Import the Intl class at the top of your PHP file using use Intl umber_format;

💡 Conclusion

By following these steps, you should be able to resolve the Fatal error: Class 'NumberFormatter' not found issue and successfully use the NumberFormatter class in your PHP code.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions