Class "NumberFormatter" not found / The "intl" PHP extension is required
Code uses the intl extension (NumberFormatter, Collator, IntlDateFormatter) but it isn’t installed.
Class "NumberFormatter" not foundintl extension Meaning
Frameworks (Laravel’s Number helper, Symfony, Magento, PrestaShop) use intl for currency, dates and translations.
Common causes
- php-intl not installed
- Installed for a different PHP version
⚡ Quick fix
sudo apt install php8.2-intland restart PHP-FPM- Docker:
docker-php-ext-install intl(needs libicu-dev) - Enable
extension=intlon Windows/XAMPP
Detailed fix by platform
PHP
- Verify with
php -m | grep intland phpinfo() from the web server
How to diagnose
- Loaded — Is intl listed in phpinfo()?
- Version — Same PHP version for CLI and web server?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in PHP
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026