Composer Error: Root composer.json requires PHP extension ext-intl / ext-mbstring

Required PHP extension is not installed or not enabled for the CLI SAPI.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Composer Error Platform: PHP
Common Root Causes:
  • Required PHP extension is not installed or not enabled for the CLI SAPI.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Install `php8.3-intl php8.3-mbstring php8.3-xml` via apt rather than bypassing with `--ignore-platform-reqs`.
Safe Diagnostic Command:
php -m && composer check-platform-reqs
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Required PHP extension is not installed or not enabled for the CLI SAPI. Recommended diagnostic: `php -m && composer check-platform-reqs`. Remediation: Install `php8.3-intl php8.3-mbstring php8.3-xml` via apt rather than bypassing with `--ignore-platform-reqs`.

Worked Examples

  • Run `php -m && composer check-platform-reqs` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-composer-platform-req-ext-missing · Independently verified: 2026-11-25

Related Resources