intl missing 🐘 PHP

Class "NumberFormatter" not found / The "intl" PHP extension is required

Code uses the intl extension (NumberFormatter, Collator, IntlDateFormatter) but it isn’t installed.

Seen on: PHP

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

  1. sudo apt install php8.2-intl and restart PHP-FPM
  2. Docker: docker-php-ext-install intl (needs libicu-dev)
  3. Enable extension=intl on Windows/XAMPP

Detailed fix by platform

PHP

  1. Verify with php -m | grep intl and phpinfo() from the web server

How to diagnose

  1. Loaded — Is intl listed in phpinfo()?
  2. Version — Same PHP version for CLI and web server?

🧠 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.