定制 sykescottages/licence-check 二次开发

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

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

sykescottages/licence-check

最新稳定版本:0.1.6

Composer 安装命令:

composer require sykescottages/licence-check

包简介

Checks all of the dependencies of projects to ensure the license is valid for use

README 文档

README

This is a package which allows checking that all of the dependencies of a project conform to an agreed set of licences.

Guide

To run a basic check with no options install the checker

composer require sykescottages/licence-check

to run

./vendor/bin/licence-check

This will by default check the current working directories composer for valid licences.

To customise the licences accepted pass -l / --licence as a command line option eg

./vendor/bin/licence-check --licence YourLicence

or to pass a file containing valid licences

./vendor/bin/licence-check --licenceFile file.txt

You can ignore certain packages with the -i / --ignoreFile flag to pass a file or --ignore for a single package

NPM

This can also check NPM, you will need to install the licence check (globally to make it easier)

sudo npm install -g license-report

then call the same binary as above with a seperate flag

./vendor/bin/licence-check --type Npm

The flags documented above work in the same way

Running from any directory

To run from any directory you need to provide input on STDIN. This is expected to be JSON for composer and csv for NPM

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-10