Know why certain composer packages are installed in your project

1 · Amit Merchant · Feb. 24, 2023, 5:37 a.m.
Ever wondered why certain packages are installed in your project when looking into your project’s “vendor” folder? Well, the reason is that these packages are dependencies of the packages that you have installed in your project. But what if you want to know why a certain package is installed in your project? You can use the why command of the composer to know why a certain package is installed in your project. For instance, let’s say you want to know why the egulias/email-validator package is ...