Dataset with open-source licenses
This project includes the text of common open-source licenses as well as an index with titles and identifiers. It's intended to supplement developer tools (like "civix") -- when "civix" (et al) initializes a new project, it prompts the developer to choose a license and loads the appropriate license text (from license-data)., (*1)
The index is in a spreadsheet file, index.csv, with columns:, (*2)
The license may include some tokens which should be replaced when applied to a given project:, (*3)
If you're using PHP to process the data and don't want to sully the code with references to specific file paths or formats, then use the autoloaded classes \LicenseData\Repository and \LicenseData\License. For example:, (*4)
$licenses = new \LicenseData\Repository(); echo $licenses->get('LGPL-2.1+')->getText();