Download the PHP package comcast/php-legal-licenses without Composer
On this page you can find all versions of the php package comcast/php-legal-licenses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comcast/php-legal-licenses
More information about comcast/php-legal-licenses
Files in comcast/php-legal-licenses
Package php-legal-licenses
Short Description A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.
License Apache-2.0
Homepage https://github.com/Comcast/php-legal-licenses
Informations about the package php-legal-licenses
PHP Legal Licenses
Legal Licenses is a utility to help generate a single text file containing all of the important information about a project's dependencies. In some organizations, the use of Open Source Software (OSS) is strictly controlled and audited, and requires having every OSS library simply documented.
This utility will generate a licenses.md
file in the root of your project that contains a list of all dependencies, the currently installed version, commit sha, its description, homepage, list of licenses, and full license text if it is present in the dependency source code directly. It receives this information from the composer.lock
file, so you must have run a composer update
or composer install
at least once in order to use this utility.
Installation
If you need a utility such as this for your place of business, chances are, you will need it for more than a single project. Therefore, the easiest and reccommeded way to install this utility is as a global composer package:
Usage
If you installed php-legal-licenses globally via composer, you should be able to run the script in any of your projects. Note, you must have run either composer update
or composer install
at least once, to create a composer.lock
file.
You can also hide dependency version with --hide-version
option:
You can output csv file with --csv
option:
Or use both option:
Example Output
Here is a snippet of the licenses file that would be generated for this utility itself:
All versions of php-legal-licenses with dependencies
symfony/console Version >=5.4.46 < 6.0.0 || >=6.4.14 < 7.0.0 || >=7.1.7
symfony/process Version >=5.4.46 < 6.0.0 || >=6.4.14 < 7.0.0 || >=7.1.7