32

I've found nesbo/carbon in my vendor folder. It is a really useful library and I'm curious to know which other package I installed requires it.

How can I know this?

Aerendir
  • 6,152
  • 9
  • 55
  • 108

1 Answers1

54

Lets look at composer why or composer depends command. This command shows which other packages depend on a certain package. Show usage

This is usage example

 $ composer depends psr/log
 symfony/debug  v3.2.2  requires  psr/log (~1.0)  
Bukharov Sergey
  • 9,767
  • 5
  • 39
  • 54