Read a composer.json: platform requirements apart from packages, stability settings, autoload mappings and what each constraint accepts.
Waiting for a composer.json
Nothing is uploaded. Paste the file, or load an example.
Composer treats a bare version as exact: "7.8.1" means that release and nothing else. Caret and tilde do the ranging, and php and ext-* entries are checks against the machine rather than packages to install — so they are counted separately here.
Paste a composer.json to see what it declares and how far each dependency can move.
This reads composer.json, not composer.lock. It does not resolve the graph, contact Packagist, or check whether a declared version exists — and because Composer resolves platform requirements against the machine performing the install, this tool cannot tell you whether the target server satisfies them.
composer.json Inspector runs entirely on your device — your composer.json is parsed in your browser and nothing is sent to Packagist
You’re on the Free plan. Compare plans
Platform requirements are separated from packages because they are not packages. php, ext-mbstring and lib-openssl are assertions about the machine, checked against the running environment rather than installed. Counting them as dependencies makes the dependency total wrong and hides the thing that actually matters about them: a missing extension fails the install on the server and not on the developer's laptop.
Composer treats a bare version as exact — "7.8.1" means that release and nothing else — with caret and tilde doing the ranging. That is the opposite of Cargo and of NuGet, which is why a constraint copied between ecosystems rarely means what it did.
The autoload view exists for a one-character bug with a very confusing symptom. A PSR-4 namespace prefix must end with a backslash; without it the prefix never matches, every class under it fails to autoload, and the error says the class does not exist rather than that the mapping is wrong.
Because nothing is downloaded for them. Composer checks them against the machine performing the install, so they are environment assertions. A missing extension is a deployment failure rather than a resolution failure, and separating them keeps both counts honest.
Yes — Composer reads a bare version as exact. Use ^7.8 for compatible updates and ~7.8.1 for patch-level ones. This is the reverse of Cargo, where the bare form is already a caret range.
Setting it to dev without prefer-stable makes Composer prefer development versions of everything, not just the one package you needed a dev build of. The pair is almost always meant to be used together.
The prefix never matches, so no class under that namespace autoloads. The error reports a missing class, which sends you looking at the file rather than at the mapping — one character, and a confusing hour.
No. This reads the manifest. The lock file records what was resolved, and composer show --tree in the project shows the graph.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab