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

**Code:** `intl missing` · **Category:** PHP · **Seen on:** PHP

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/php/intl-extension-missing)
