Skip to content

totten/license-data

Repository files navigation

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).

index.csv

The index is in a spreadsheet file, index.csv, with columns:

  • Short name
  • Title
  • Relative path of the license's text file
  • Absolute URL of a copy of the license

Tokens

The license may include some tokens which should be replaced when applied to a given project:

  • TITLE: The name of the work being licensed
  • OWNER: The person or entity which holds copyright on the code and which licenses the code.
  • YEAR: The year(s) of authorship

Helper classes

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:

$licenses = new \LicenseData\Repository();
echo $licenses->get('LGPL-2.1+')->getText();

About

Collection of open-source license files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages