Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer nested requirements log

Tags:

composer-php

How can i make composer verbose, so that i get a report like that:

 Problem 1
    - package "foo/bar" requested the package "contao/core == 3.5.31.0" which could not be found.

To be clear, my current report look like

Problem 1
    - The requested package contao/core == 3.5.31.0 could not be found.

But which of my 100+ Requirements need this package?

like image 772
Henry Avatar asked Apr 13 '26 22:04

Henry


1 Answers

Has the composer.lock been written? Then you could try to call composer why contao/core to see which package required contao.

Have a look at the documentation for that command - using --tree gives you a tree of the dependency graph which might be interesting if it is a nested dependency

like image 68
Nico Haase Avatar answered Apr 17 '26 12:04

Nico Haase