PHPackages                             jover\_be/drupal-code-check - 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. jover\_be/drupal-code-check

ActiveLibrary

jover\_be/drupal-code-check
===========================

A Git pre-commit hook to check Drupal Coding Standards and more.

v0.0.13(9y ago)42.6k5[1 PRs](https://github.com/jover/drupal-code-check/pulls)MITPHPPHP &gt;=5.4

Since Nov 14Pushed 9y ago2 watchersCompare

[ Source](https://github.com/jover/drupal-code-check)[ Packagist](https://packagist.org/packages/jover_be/drupal-code-check)[ Docs](https://github.com/jover/drupal-code-check)[ RSS](/packages/jover-be-drupal-code-check/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

Drupal Code Check
=================

[](#drupal-code-check)

A Git pre-commit hook to check Drupal Coding Standards and more.

[![Latest Stable Version](https://camo.githubusercontent.com/b49362b05b38b058b43bbc196c48e9d23e77b934667254f74b1cbae11b7e4dc9/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7665725f62652f64727570616c2d636f64652d636865636b2f762f737461626c65)](https://packagist.org/packages/jover_be/drupal-code-check) [![Total Downloads](https://camo.githubusercontent.com/ddfc48636494bf53f208ca9de6b188aad886374aadb786512b27eec3656ef79d/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7665725f62652f64727570616c2d636f64652d636865636b2f646f776e6c6f616473)](https://packagist.org/packages/jover_be/drupal-code-check) [![Latest Unstable Version](https://camo.githubusercontent.com/fd3715e4f71bfa59eb7c7ab8c251b7edd15f033e4d30036717e394298c7de912/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7665725f62652f64727570616c2d636f64652d636865636b2f762f756e737461626c65)](https://packagist.org/packages/jover_be/drupal-code-check) [![License](https://camo.githubusercontent.com/d55e968a9da97afd06f4c45c7bfab5c5cfe343397c4d454c4b6d9f75f4243b21/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7665725f62652f64727570616c2d636f64652d636865636b2f6c6963656e7365)](https://packagist.org/packages/jover_be/drupal-code-check) [![composer.lock](https://camo.githubusercontent.com/6aa6f8c7a40f88fc1982692445bcf970c30bb893770e2f6167c316f5d4ffe182/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7665725f62652f64727570616c2d636f64652d636865636b2f636f6d706f7365726c6f636b)](https://packagist.org/packages/jover_be/drupal-code-check)

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

[](#description)

This Git pre-commit hook will be active on your Composer based Drupal project.

Things which will be checked in the pre-commit hook:

- Syntax checking using *PHP Linter*
- Automatically try to match code style via *PHP Code Sniffer Beautifier and Fixer*
- Coding standards checking using *PHP Code Sniffer*
- Blacklisted strings checking/validation

Note that files of the following origins are **not checked**:

- Drupal Core
- Contributed Modules
- Contributed Libraries
- Contributed Themes
- Contributed Profiles

Getting started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- Composer
- Composer based Drupal project
- PHP 5.4 or higher

### Installation

[](#installation)

Add this project as a composer dependency on your Composer based Drupal project.

```
composer require jover_be/drupal-code-check
```

And don't forget to update...

```
composer update jover_be/drupal-code-check
```

In order to activate the Git Hooks, update your composer.json file like following:

```
{
    "scripts": {
        "post-install-cmd": [
            "jover_be\\drupal_code_check\\GitHooks::create"
        ],
        "post-update-cmd": [
        	"jover_be\\drupal_code_check\\GitHooks::create",
        ]
    }
}

```

#### Development requirement

[](#development-requirement)

In case you want to install it as a development requirement (*require-dev*), make use of the project *neronmoon/scriptsdev* in order to execute the scripts only in case your project was installed in development mode.

```
composer require --dev neronmoon/scriptsdev
composer require --dev jover_be/drupal-code-check
```

And instead, you should be using the *scripts-dev* part as described by

```
{
    "extra": {
        "scripts-dev": {
            "post-install-cmd": [
                "jover_be\\drupal_code_check\\GitHooks::create"
            ],
            "post-update-cmd": [
                "jover_be\\drupal_code_check\\GitHooks::create",
            ]
        }
    }
}

```

Author
------

[](#author)

[jover.be](http://www.jover.be)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~13 days

Recently: every ~30 days

Total

13

Last Release

3314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fdb97a1848f4291058a146ea78e07239349e700c6cf4215ce20725f19ace1d7?d=identicon)[jover](/maintainers/jover)

---

Top Contributors

[![jover](https://avatars.githubusercontent.com/u/433676?v=4)](https://github.com/jover "jover (3 commits)")[![woutersf](https://avatars.githubusercontent.com/u/592312?v=4)](https://github.com/woutersf "woutersf (1 commits)")

---

Tags

standardsphpcscode reviewdrupalgitpre-commit

### Embed Badge

![Health badge](/badges/jover-be-drupal-code-check/health.svg)

```
[![Health](https://phpackages.com/badges/jover-be-drupal-code-check/health.svg)](https://phpackages.com/packages/jover-be-drupal-code-check)
```

###  Alternatives

[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

214.8M28](/packages/acquia-coding-standards)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[ec-europa/qa-automation

Extra php codesniffs for QualityAssurance.

10290.4k3](/packages/ec-europa-qa-automation)

PHPackages © 2026

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