Fixes & guides

How to fix "Your requirements could not be resolved to an installable set of packages"

A step-by-step way to read Composer's conflict output, find the package that is blocking you, and fix it without --ignore-platform-reqs or deleting the lock file.

On this page
  1. Read the output from the top
  2. Cause 1: a partial update pinned by the lock file
  3. Cause 2: two packages want incompatible versions of a third
  4. Cause 3: the PHP version or an extension
  5. Cause 4: minimum stability
  6. Things not to do
  7. A quick routine

Composer prints this when no combination of versions satisfies every constraint at once. The message looks intimidating, but it always comes down to one of four causes, and Composer’s own output tells you which.

Read the output from the top

A typical failure:

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

  Problem 1
    - Root composer.json requires acme/report-builder ^3.0 -> satisfiable by acme/report-builder[3.0.0, 3.1.0].
    - acme/report-builder[3.0.0, ..., 3.1.0] require symfony/console ^7.0 -> found symfony/console[v7.0.0, ...] but the package is fixed to v6.4.12 (lock file version) by a partial update and that version does not match.

Read each Problem as a chain: you require A; A requires B at version X; but B is stuck at Y because of Z. The last line of the chain is the real blocker. In this example symfony/console is pinned by the lock file and you asked to update only one package.

Cause 1: a partial update pinned by the lock file

If the message says “fixed to … (lock file version) by a partial update”, let Composer move the dependencies too:

composer update acme/report-builder --with-dependencies
# or, if a dependency is also required directly in composer.json:
composer update acme/report-builder --with-all-dependencies

Cause 2: two packages want incompatible versions of a third

- package-a 2.x requires psr/log ^1.0
- package-b 5.x requires psr/log ^3.0

Ask Composer why each version is required, and why the one you want is not allowed:

composer why psr/log
composer why-not psr/log 3.0

Then fix it at the source: upgrade package-a to a release that supports the newer version, pin package-b to an older major that still matches, or replace one of them. There is no flag that makes two incompatible packages work together.

Cause 3: the PHP version or an extension

- acme/report-builder 3.1.0 requires php >=8.3 -> your php version (8.2.27) does not satisfy that requirement.
- ... requires ext-intl * -> it is missing from your system.

Composer checks the PHP that runs Composer, or the version in config.platform.php if you set one. See why Composer reports the wrong PHP version if the version shown is not the one your server uses. For a missing extension, install it (apt install php8.3-intl, docker-php-ext-install intl) rather than ignoring it.

Cause 4: minimum stability

- ... found acme/report-builder[dev-main, 4.0.0-beta2] but it does not match your minimum-stability.

Only stable releases are allowed by default. Either wait for a stable tag, or allow this one package to be a beta with a stability flag: "acme/report-builder": "^4.0@beta". The constraint tester shows how flags change what matches.

Things not to do

  • --ignore-platform-reqs installs packages that may not run on your PHP. Use it only to install tools in a throwaway container.
  • Deleting composer.lock and vendor/ turns one conflict into an upgrade of every package at once. You lose the record of what was tested.
  • "*" constraints make conflicts rarer today and upgrades unpredictable tomorrow.

A quick routine

  1. Run the failing command again with -W (--with-all-dependencies).
  2. Read the last line of each Problem chain.
  3. Run composer why-not <package> <version>.
  4. Change one constraint, then repeat.

Found a mistake or something out of date? Tell us and we will fix it. See our editorial policy.

A good place to start

What are you working on?

Tools, guides, PHP versions and the archive.

ToolJSON ↔ PHP arrayConvert JSON to a PHP array literal with short or array() syntax, or turn a PHP array back into JSON. Runs in your browser; nothing is uploaded.ToolSerialized data inspectorRead PHP serialized strings as a tree, find wrong string lengths after a search-and-replace, and rebuild them with correct byte counts. Parsed safely in your browser.ToolComposer constraint testerSee exactly which versions a Composer constraint such as ^2.1, ~1.4 or >=8.1 <8.4 allows, in plain English, and test versions against it.ToolPHP date() format builderBuild a PHP date() or DateTime::format() string with a live preview in any time zone, plus a reference for every format character.ToolPHP upgrade checklistPick your current and target PHP versions and get every breaking change, deprecation and tooling step in between, as a checklist you can copy.GuideAllowed memory size exhaustedWhat PHP's memory_limit fatal error means, how to tell a real leak from a big job, and fixes for the usual causes: loading whole tables, unbounded arrays, Composer and recursion.GuideComposer dependency conflictsA step-by-step way to read Composer's conflict output, find the package that is blocking you, and fix it without --ignore-platform-reqs or deleting the lock file.Guidecomposer install vs updatecomposer install reproduces composer.lock; composer update rewrites it. Here is what each command does, when to use which, and a safe production deploy routine.GuideComposer uses the wrong PHP versionComposer says "your php version (8.1.x) does not satisfy that requirement" when your server runs 8.3? The cause is usually the CLI binary, config.platform.php, or platform_check.php.GuideEloquent N+1 queriesHow to spot N+1 queries in Laravel, fix them with eager loading, withCount() and constrained loads, and make Laravel throw an exception the next time one slips in.GuideHeaders already sentThe warning names the file and line that produced output. Here is how to read it, the five usual culprits (BOM, whitespace, echo, warnings, closing tags) and fixes that do not just hide it.GuideWriting a talk proposalWhat reviewers look for in a call-for-papers submission: a specific title, an abstract for attendees, notes for the committee, and a talk-sized idea. With a worked example and a checklist.GuideLaravel queue jobs not runningJobs dispatched but never processed, stuck in the jobs table, or running old code? Work through the connection, the queue name, the worker, failed jobs and deploy restarts.PHP versionsWhat's new in PHP 8.4PHP 8.4 (released 21 November 2024) brought property hooks, public private(set) visibility, new without parentheses, lazy objects, an HTML5 DOM parser and array_find(). Plus the deprecations that matter.PHP versionsWhat's new in PHP 8.5PHP 8.5 (released 20 November 2025) added the |> pipe operator, a standards-compliant URI extension, clone() with property overrides, #[\NoDiscard] and array_first()/array_last().PHP versionsWhat's new in PHP 8.6PHP 8.6 was released on 19 November 2026. Partial function application, clamp(), readonly property defaults, Io\Poll and Time\Duration, plus the session and ValueError changes to check before upgrading.GuidePHP array to JSONWhy json_encode() sometimes gives you an object instead of a list, how to keep floats and slashes intact, and how to catch the silent false that malformed UTF-8 returns.GuideDuplicate webhooks in PHPWebhook providers retry, so the same event can arrive twice. Verify the signature, record the event ID with a unique key, answer fast and process in a queue: a pattern that works in plain PHP, Laravel and Symfony.GuidePHPStan baseline for legacy codeGenerate a PHPStan baseline, stop new errors from getting in, then raise the level step by step. A tested routine for old PHP codebases.GuidePSR-4 autoloadingHow PSR-4 maps namespaces to folders, how to configure it in composer.json, and why "Class not found" happens: case, typos, a stale autoloader or a namespace that does not match the path.GuideSerialized data broken after search-replaceChanging a domain name with SQL REPLACE() or sed corrupts PHP serialized strings because their byte lengths no longer match. Here is how to spot it and repair it safely.GuideUpgrade PHP with RectorUpgrade a PHP application one version at a time: pin the baseline, let Rector rewrite syntax, let PHPStan find what Rector cannot, and prove it with tests before you switch runtimes.PHP versionsSupported PHP versionsRelease, active support and end-of-life dates for every PHP version.ArchiveSunshinePHP talk archive 2013–2020Talk titles and speakers from eight years of the Miami PHP conference.ArchiveSpeaker indexEveryone who spoke at SunshinePHP, A to Z.