PHP error category
Composer
Dependency and autoload tooling.
Composer errors arise when dependency and autoload tooling affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.
The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.

Guides in this category
| Title | Pattern | Severity |
|---|---|---|
| Call to undefined function | Fatal error: Uncaught Error: Call to undefined function %s() in %s:%d |
fatal |
| Class not found | Fatal error: Uncaught Error: Class "%s" not found in %s:%d |
fatal |
| Class not found after Composer install | Class "%s" not found |
error |
| Composer abandoned package warning | Package old/vendor is abandoned, you should avoid using it. Use new/vendor instead. |
warning |
| Composer allow-plugins blocked plugin | acme/installer contains a Composer plugin which is blocked by your allow-plugins config. |
error |
| Composer dist download failed | Failed to download acme/package from dist: The zip extension and unzip/7z commands are both missing, skipping. |
warning |
| Composer GitHub API rate limit exceeded | Could not fetch https://api.github.com/repos/acme/package, please create a GitHub OAuth token to go over the API rate limit |
error |
| Composer invalid composer.json | "./composer.json" does not contain valid JSON: Parse error on line 8 |
error |
| Composer lock file is not up to date | The lock file is not up to date with the latest changes in composer.json. |
warning |
| Composer memory limit exhausted | PHP Fatal error: Allowed memory size exhausted while running Composer |
fatal |
| Composer minimum stability conflict | Could not find a version of package acme/dev-tool matching your minimum-stability (stable). |
error |
| Composer package could not be found | Could not find a matching version of package acme/report. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability. |
error |
| Composer platform requirements not satisfied | Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.29. |
error |
| Composer plugin API version mismatch | Plugin acme/installer requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.6.0"). |
error |
| Composer process timeout exceeded | The process exceeded the timeout of 300 seconds. |
error |
| Composer repository authentication required | Invalid credentials for https://repo.%s/packages.json, aborting. |
error |
| Composer requirements could not be resolved | Your requirements could not be resolved to an installable set of packages. |
error |