jdarwood007/license-detector
最新稳定版本:v1.1.1
Composer 安装命令:
composer require jdarwood007/license-detector
包简介
License Type Detector
README 文档
README
A License information detector, inspired by Licensee and relies on data from choosealicense.com
Installation
Using Composer run the following
$ composer require jdarwood007/license-detector
Problem
The code uses php's similar_text() function to tell which license is the one used, the function is quiet expensive and can take up to one second for the results.
Usage
Using the Detector class's parse() or parseByPath() methods, you get a License object containing data about the license
require '...\vendor\autoload.php'; use LicenseDetector\Detector; $detector = new Detector(); // By license contents $license = $detector->parse($contents); // By file path $license = $detector->parseByPath($path_to_license);
Contributing
Sign-off your commits, to acknowledge your submission under the license of the project.
Example: Signed-off-by: Your Name <youremail@example.com>
License
This package is released under the MIT License. A full copy of this license is included in the package file.
统计信息
- 总下载量: 392
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-04