定制 loophp/grumphp-license-task 二次开发

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

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

loophp/grumphp-license-task

最新稳定版本:1.0.10

Composer 安装命令:

composer require loophp/grumphp-license-task

包简介

Provide a task for GrumPHP that check if the License file is valid.

README 文档

README

Latest Stable Version GitHub stars Total Downloads GitHub Workflow Status Scrutinizer code quality Code Coverage License Donate!

GrumPHP License Task

Description

This package provides a new GrumPHP task: license.

This task ensure that your project contains a valid license.

Features

Make sure the LICENSE file exists in your project.

If it already exists, it make sure it is valid. If it is not valid, GrumPHP will propose to fix it for you.

If it doesn't exist, GrumPHP will create the file.

Installation

composer require loophp/grumphp-license-task --dev

Then, edit your GrumPHP configuration file and register the extension:

grumphp:
  extensions:
    - loophp\GrumphpLicenseTask\Extension

Usage

Use the new license task provided by this extension:

taks:
  license:
    name: MIT
    date_from: 2021
    holder: Pol Dellaiera

Available options

  • name: (string) The OSI name of the license (see Available license).
  • input: (string) The filepath to the file to use as license. Cannot be used in conjuction with name.
  • output: (string) The output filename to use to save the license in.
  • date_from: (int) The 'from' date in year.
  • holder: (string) The holder's name.

Available licenses

Contributing

Report bug on the issue tracker.

See the file CONTRIBUTING.md but feel free to contribute to this library by sending Github pull requests.

Changelog

See CHANGELOG.md for a changelog based on git commits.

For more detailed changelogs, please check the release changelogs.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-21