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?
My solution was to search the composer. lock file for the abandoned package name. It will appear in require or require-dev for the package that depends on it.
Composer will look in all your repositories to find the packages your project requires. By default, only the Packagist.org repository is registered in Composer. You can add more repositories to your project by declaring them in composer.
#prohibits (why-not) The composer prohibits command tells us which packages are preventing a given package from being installed.
In a nutshell, cgr (named after “composer global require”) is a drop-in replacement for the composer global require command which can be used for installing PHP command line tools globally that is functionally equivalent (nearly) to the existing command, but much safer.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With