PHPackages                             nickwilde1990/drupal-standards-composer-commands - 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. nickwilde1990/drupal-standards-composer-commands

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

nickwilde1990/drupal-standards-composer-commands
================================================

Provides composer commands for standards checks on your Drupal project

1.0.0-beta3(7y ago)031GPL-3.0-or-laterPHP

Since Sep 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/NickWilde1990/drupal-standards-composer-commands)[ Packagist](https://packagist.org/packages/nickwilde1990/drupal-standards-composer-commands)[ RSS](/packages/nickwilde1990-drupal-standards-composer-commands/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (4)Used By (0)

Drupal Standards Composer Commands
==================================

[](#drupal-standards-composer-commands)

[![Latest Stable Version](https://camo.githubusercontent.com/82633b3c51d0123319ea8a59ea254666d462acd0efb94402946c9c4205b76310/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b77696c6465313939302f64727570616c2d7374616e64617264732d636f6d706f7365722d636f6d6d616e64732f76657273696f6e)](https://packagist.org/packages/nickwilde1990/drupal-standards-composer-commands)[![Total Downloads](https://camo.githubusercontent.com/dd0b887f91f107bbeea9227391fcbd90fe04178bf06e3f58314f868dcbea7915/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b77696c6465313939302f64727570616c2d7374616e64617264732d636f6d706f7365722d636f6d6d616e64732f646f776e6c6f616473)](https://packagist.org/packages/nickwilde1990/drupal-standards-composer-commands)[![Latest Unstable Version](https://camo.githubusercontent.com/7261fce3d37bf1399fc9cf219e17a88e7f01684dd2d8d0925841b856b6d6776c/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b77696c6465313939302f64727570616c2d7374616e64617264732d636f6d706f7365722d636f6d6d616e64732f762f756e737461626c65)](https://packagist.org/packages/nickwilde1990/drupal-standards-composer-commands)[![License](https://camo.githubusercontent.com/a27c513e47174c28bc84f9d689732adbf8948985b546401c85f20ea18e2b74f3/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b77696c6465313939302f64727570616c2d7374616e64617264732d636f6d706f7365722d636f6d6d616e64732f6c6963656e7365)](https://packagist.org/packages/nickwilde1990/drupal-standards-composer-commands)

Table Of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Configuration](#configuration)
- [Known Issues](#known-issues)
- [Contributing](#contributing)
- [Licence](#license)

Introduction
------------

[](#introduction)

Provides composer commands to check your project according to Drupal Standards. Sets up all the requirements for basic standards checks. If you have them, this will use `phpcs.xml` and similar depending on the specific tool if available to use your customized standards or will use Drupal 8 defaults.

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

[](#installation)

Install through [Composer](https://getcomposer.io). Due to the status of some of the dependencies, you will need to have `"minimum-stability": "dev"` in your composer config. When using that, in most cases, it is recommended to also use `"prefer-stable": true`.

```
composer require --dev nickwilde1990/drupal-standards-composer-commands
```

Usage
-----

[](#usage)

Run

```
composer commandname/alias
```

**Note:** Unless/Until [this pull request ](https://github.com/composer/composer/pull/7648) lands in composer, you will need to run any command provided by this in your project root (same location as your `composer.json`).

### Available Commands

[](#available-commands)

- `drupal-eslint` \[`cs-js-scan`\]: Runs Eslint on your code (check JS standards). Will use default Drupal 8 standards if you do not have a `.eslintrc.json`.
- `drupal-eslint-fix` \[`cs-js-fix`\]: Runs Eslint fix mode on your code (automatically fix JS standards compliance issues). Will use default Drupal 8 standards if you do not have a `.eslintrc.json`.
- `drupal-phpcs` \[`cs-php-scan`\]: Runs PHPCS on your code (check PHP standards). Will use standard Drupal 8 mode if you do not have a `phpcs.xml` or `phpcs.xml.dist`.
- `drupal-phpcbf` \[`cs-php-fix`\]: Runs PHPCBF on your code (automatically fix many PHP standards complaince issues). Will use standard Drupal 8 mode if you do not have a `phpcs.xml` or `phpcs.xml.dist`.
- `drupal-stylelint` \[`cs-css-scan`\]: Runs Stylelint on your code (check CSS standards). Will use default Drupal 8 standards if you do not have a `.stylelintrc.json`.
- `drupal-stylelint-fix` \[`cs-css-fix`\]: Runs Stylelint fix mode on your code (automatically fix CSS standards compliance issues). Will use default Drupal 8 standards if you do not have a `.stylelintrc.json`.

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

[](#configuration)

Some custom configuration can be provided in your package's `composer.json` in the `extra` key under `drupal-standards-commands`. Specifically:

- `ignore-paths`: Provide an array of extra paths for tools to ignore (affects all scan/fix tools). Default: `["core"]`Example: ```
    {
      "extra": {
        "drupal-standards-commands": {
          "ignore-paths": [
            "core",
            "tests"
          ]
        }
      }
    }
    ```

Known issues
------------

[](#known-issues)

See open bug reports in the [issue queue](https://github.com/NickWilde1990/drupal-standards-composer-commands/issues)

Contribution
------------

[](#contribution)

Contributions are welcome!

License
-------

[](#license)

Copyright (C) 2018 Nick Wilde.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~1 days

Total

3

Last Release

2790d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/335bc60327415dda3c2e3e00708c02f10938b263d8e3740748d11b80f4333127?d=identicon)[NickWilde1990](/maintainers/NickWilde1990)

---

Top Contributors

[![NickDickinsonWilde](https://avatars.githubusercontent.com/u/92694?v=4)](https://github.com/NickDickinsonWilde "NickDickinsonWilde (11 commits)")

### Embed Badge

![Health badge](/badges/nickwilde1990-drupal-standards-composer-commands/health.svg)

```
[![Health](https://phpackages.com/badges/nickwilde1990-drupal-standards-composer-commands/health.svg)](https://phpackages.com/packages/nickwilde1990-drupal-standards-composer-commands)
```

###  Alternatives

[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13197.9k1](/packages/axelerant-drupal-quality-checker)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[uma/composer-psysh

No-frills PsySH-Composer plugin

183.2k](/packages/uma-composer-psysh)

PHPackages © 2026

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