List the licenses used by the dependencies of a PHP application


The only way to get this information automatically is to use Composer to manage your dependencies and then execute this command:

$ cd your-project/
$ composer licenses
$ composer licenses

Name                                  Version  License
doctrine/common                       v2.x.y   MIT
doctrine/dbal                         v2.x.y   MIT
league/commonmark                     0.x.y    BSD-3-Clause
symfony/symfony                       v3.x.y   MIT
twig/twig                             v1.x.y   BSD-3-Clause
Find more solutions about: , ,