PHPackages                             loophp/grumphp-license-task - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. loophp/grumphp-license-task

ActiveLibrary[Testing &amp; Quality](/categories/testing)

loophp/grumphp-license-task
===========================

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

1.0.10(1y ago)268.4k↓18.4%2MITPHPPHP &gt;= 7.4CI passing

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/loophp/grumphp-license-task)[ Packagist](https://packagist.org/packages/loophp/grumphp-license-task)[ GitHub Sponsors](https://github.com/drupol)[ RSS](/packages/loophp-grumphp-license-task/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (12)Versions (12)Used By (2)

[![Latest Stable Version](https://camo.githubusercontent.com/ad0b7a770fa762aa69ce72ead3dc60c12ec2732f6cec8ba096ae21f4d385ed85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/grumphp-license-task)[![GitHub stars](https://camo.githubusercontent.com/b770a4ead8f9e408fb7de647403631e02b21660eaf59b835b0d647b17370762c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/grumphp-license-task) [![Total Downloads](https://camo.githubusercontent.com/d8cc443b56b456d9fc949f69993bc46702b614fd405809fc2bdae16cfce794f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/grumphp-license-task)[![GitHub Workflow Status](https://camo.githubusercontent.com/bf722060db22261bc95d155ecd12e05364605561fb282d75aeadfa8566f39647/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2f556e697425323074657374733f7374796c653d666c61742d737175617265)](https://github.com/loophp/grumphp-license-task/actions)[![Scrutinizer code quality](https://camo.githubusercontent.com/e483a09cc6fc9e6b3ffdf3baf9629252a0e653857c4442c6bd7705d9049c417c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/grumphp-license-task/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/fc000d14c3f540a88445f1b538b6cc5ac81a8f47147e54b9cb88a79204ae3df3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/grumphp-license-task/?branch=master) [![License](https://camo.githubusercontent.com/4dd8b70c98e2dcad3dd1a5af1d028e228a1c73aa38bedc1938df693eafa5e8fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6f7068702f6772756d7068702d6c6963656e73652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/grumphp-license-task)[![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grumphp/grumphp)

GrumPHP License Task
====================

[](#grumphp-license-task)

Description
-----------

[](#description)

This package provides a new [GrumPHP](https://packagist.org/packages/grumphp/grumphp) task: `license`.

This task ensure that your project contains a valid license.

Features
--------

[](#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](https://packagist.org/packages/grumphp/grumphp)will propose to fix it for you.

If it doesn't exist, [GrumPHP](https://packagist.org/packages/grumphp/grumphp) will create the file.

Installation
------------

[](#installation)

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

Then, edit your [GrumPHP](https://packagist.org/packages/grumphp/grumphp) configuration file and register the extension:

```
grumphp:
  extensions:
    - loophp\GrumphpLicenseTask\Extension
```

Usage
-----

[](#usage)

Use the new `license` task provided by this extension:

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

### Available options

[](#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

[](#available-licenses)

- BSD-3-Clause
- EUPL-1.2
- MIT
- LGPL-2.0
- LGPL-2.1
- LGPL-3.0
- (*[submit an issue/pr](https://github.com/loophp/grumphp-license-task/issues) to add more*)

Contributing
------------

[](#contributing)

Report bug on the [issue tracker](https://github.com/loophp/grumphp-license-task/issues).

See the file [CONTRIBUTING.md](https://github.com/loophp/grumphp-license-task/blob/master/.github/CONTRIBUTING.md) but feel free to contribute to this library by sending Github pull requests.

Changelog
---------

[](#changelog)

See [CHANGELOG.md](https://github.com/loophp/grumphp-license-task/blob/master/CHANGELOG.md) for a changelog based on [git commits](https://github.com/loophp/grumphp-license-task/commits/master).

For more detailed changelogs, please check [the release changelogs](https://github.com/loophp/grumphp-license-task/releases).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance45

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~143 days

Recently: every ~339 days

Total

11

Last Release

423d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/252042?v=4)[Pol Dellaiera](/maintainers/drupol)[@drupol](https://github.com/drupol)

---

Top Contributors

[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (36 commits)")

---

Tags

grumphp-tasklicenselicensegrumphp-task

###  Code Quality

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/loophp-grumphp-license-task/health.svg)

```
[![Health](https://phpackages.com/badges/loophp-grumphp-license-task/health.svg)](https://phpackages.com/packages/loophp-grumphp-license-task)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
