Composer conflict 🐘 PHP

Your requirements could not be resolved to an installable set of packages.

Composer can’t find package versions that satisfy every constraint (PHP version, extensions, other packages).

Seen on: PHP

Meaning

The “Problem 1 …” lines explain each conflict. Typical: a package requires a newer PHP than the server’s, a missing extension (ext-gd, ext-intl), or two packages need incompatible versions of a shared dependency.

Common causes

  • Server PHP version lower than a package requires
  • Missing PHP extension (ext-*)
  • Two packages require incompatible versions
  • Lock file created on a different PHP version

⚡ Quick fix

  1. Read the “Problem” lines carefully
  2. Set config.platform.php in composer.json to your production PHP version
  3. Install missing extensions
  4. Relax or upgrade the conflicting constraint

Detailed fix by platform

PHP

  1. Diagnose with composer why-not vendor/package 2.0

How to diagnose

  1. Problem lines — Which constraint fails?
  2. Platform — PHP version and extensions on this machine

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