Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Composer Lint Laravel Package

sllh/composer-lint

Composer plugin that extends composer validate with extra linting rules for composer.json. Installs globally or per project, auto-enables on install, and can be configured via COMPOSER_HOME/config.json.

View on GitHub
Deep Wiki
Context7

composer-lint

composer-lint is a plugin for Composer.

It extends the composer validate command with extra rules.

Latest Stable Version Latest Unstable Version License Dependency Status Reference Status

Total Downloads Monthly Downloads Daily Downloads

Build Status Scrutinizer Code Quality Code Climate Coverage Status SensioLabsInsight

Installation

You can install it either globally (recommended):

composer global require sllh/composer-lint

or locally:

composer require sllh/composer-lint

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

You can configure the plugin via the COMPOSER_HOME/config.json 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.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed