定制 totten/license-data 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

totten/license-data

最新稳定版本:0.3

Composer 安装命令:

composer require totten/license-data

包简介

Dataset with open-source licenses

README 文档

README

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();

统计信息

  • 总下载量: 20.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-05-07