PHPackages                             sllh/composer-lint - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sllh/composer-lint

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

sllh/composer-lint
==================

Extends the composer validate command with extra rules

v2.0.0(5y ago)14214.6k↑16.1%5[1 issues](https://github.com/Soullivaneuh/composer-lint/issues)[2 PRs](https://github.com/Soullivaneuh/composer-lint/pulls)7MITPHPPHP ^7.4 || ^8.0

Since May 30Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Soullivaneuh/composer-lint)[ Packagist](https://packagist.org/packages/sllh/composer-lint)[ RSS](/packages/sllh-composer-lint/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (7)

composer-lint
=============

[](#composer-lint)

composer-lint is a plugin for Composer.

It extends the composer validate command with extra rules.

[![Latest Stable Version](https://camo.githubusercontent.com/ec277290854c4474c4b942125aebe0582b281990ad72c70d754221e60815626c/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f762f737461626c65)](https://packagist.org/packages/sllh/composer-lint)[![Latest Unstable Version](https://camo.githubusercontent.com/a0d580808b26a1cee49eef3a1761ee25db9a75699ac4ef17bdd13e326357689b/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f762f756e737461626c65)](https://packagist.org/packages/sllh/composer-lint)[![License](https://camo.githubusercontent.com/3e064594fb5224934ac995df3172e28b9b3549997a61acaf093ee55457574f79/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f6c6963656e7365)](https://packagist.org/packages/sllh/composer-lint)[![Dependency Status](https://camo.githubusercontent.com/e1bf894363e1c4bd4a3daacfdc5ebee8a5d4013882dad661cd29deaa85e32830/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f736c6c683a636f6d706f7365722d6c696e742f62616467652e737667)](https://www.versioneye.com/php/sllh:composer-lint)[![Reference Status](https://camo.githubusercontent.com/438b884353db39437096c3efddb6ed2f054790e3ea8141c5e32ab5db184228e1/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f736c6c683a636f6d706f7365722d6c696e742f7265666572656e63655f62616467652e737667)](https://www.versioneye.com/php/sllh:composer-lint/references)

[![Total Downloads](https://camo.githubusercontent.com/354352e00cf6d56e19c1e0f7d775a307a709474e814debfbfef742d2d53d6b0f/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f646f776e6c6f616473)](https://packagist.org/packages/sllh/composer-lint)[![Monthly Downloads](https://camo.githubusercontent.com/9f57afa32011ade7aefdc9aac707492e298a8683cc317cfbefe09fc60582e0fe/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f642f6d6f6e74686c79)](https://packagist.org/packages/sllh/composer-lint)[![Daily Downloads](https://camo.githubusercontent.com/bedf399590df092e7c695c6d2907c59fa9ef81b5c703c39a21124e46807232da/68747470733a2f2f706f7365722e707567782e6f72672f736c6c682f636f6d706f7365722d6c696e742f642f6461696c79)](https://packagist.org/packages/sllh/composer-lint)

[![Build Status](https://camo.githubusercontent.com/8ed09575abc2041045060ba8592e53ee8881f4a474a2c2ed7330167543cfd250/68747470733a2f2f7472617669732d63692e6f72672f536f756c6c6976616e6575682f636f6d706f7365722d6c696e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Soullivaneuh/composer-lint)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d65e895c4aa40c175d770f19a49c43619a80e48fda1a455c865059fbfb257036/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f536f756c6c6976616e6575682f636f6d706f7365722d6c696e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Soullivaneuh/composer-lint/?branch=master)[![Code Climate](https://camo.githubusercontent.com/de01a4e13c512b908550ddcd8428ed0a29adfac7569bc7b51ce355e495f07ac6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f536f756c6c6976616e6575682f636f6d706f7365722d6c696e742f6261646765732f6770612e737667)](https://codeclimate.com/github/Soullivaneuh/composer-lint)[![Coverage Status](https://camo.githubusercontent.com/f08acbc4aa14f10377147120101639e5b51b0b5901462a1f728ffed5193202af/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f536f756c6c6976616e6575682f636f6d706f7365722d6c696e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/Soullivaneuh/composer-lint?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/71f26e99a40a4984e59d262e45c4e258638badd98ad57d26d2646d33d1596ca4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36396465633761342d363161302d343736302d626661322d6433313637616535323633302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/69dec7a4-61a0-4760-bfa2-d3167ae52630)

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

[](#installation)

You can install it either globally (recommended):

```
composer global require sllh/composer-lint
```

or locally:

```
composer require sllh/composer-lint
```

Usage
-----

[](#usage)

That's it! Composer will enable automatically the plugin as soon it's installed.

Just run `composer validate` command to see the plugin working.

Configuration
-------------

[](#configuration)

You can configure the plugin via the [`COMPOSER_HOME/config.json`](https://getcomposer.org/doc/03-cli.md#composer-home) file. Here is the default one:

```
{
    "config": {
        "sllh-composer-lint": {
            "php": true,
            "type": true,
            "minimum-stability": true,
            "version-constraints": true
        },
        "sort-packages": false
    }
}
```

- `php`: Checks if the PHP requirement is set on the `require` section.
- `type`: Check if package `type` is defined.
- `minimum-stability`: Checks if `minimum-stability` is set. It raises an error if it is, except for `project` packages.
- `version-constraints`: Checks if version constraint formats are valid (e.g. `~2.0` should be `^2.0`).
- `sort-packages`: Checks if packages are sorted on each section. This option is outside `sllh-composer-lint` because it's a composer native one.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 97.3% 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 ~437 days

Total

5

Last Release

1892d ago

Major Versions

v1.0.3 → v2.0.02021-03-13

PHP version history (2 changes)v1.0.0PHP ^5.3 || ^7.0

v2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddfefb214260c4bfc0ecdd78842fc4b21bef42930fa8e4e55bb3a410c84baeac?d=identicon)[Soullivaneuh](/maintainers/Soullivaneuh)

---

Top Contributors

[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (36 commits)")[![fonata](https://avatars.githubusercontent.com/u/549369?v=4)](https://github.com/fonata "fonata (1 commits)")

---

Tags

plugincomposerlintvalidate

### Embed Badge

![Health badge](/badges/sllh-composer-lint/health.svg)

```
[![Health](https://phpackages.com/badges/sllh-composer-lint/health.svg)](https://phpackages.com/packages/sllh-composer-lint)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[sllh/composer-versions-check

Checks if packages are up to date to last major versions after update

2352.4M16](/packages/sllh-composer-versions-check)[veewee/composer-run-parallel

Run composer tasks in parallel

91748.2k13](/packages/veewee-composer-run-parallel)[laminas/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

294.1M95](/packages/laminas-laminas-component-installer)[netresearch/composer-patches-plugin

Composer patches plugin

80262.1k7](/packages/netresearch-composer-patches-plugin)

PHPackages © 2026

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