PHPackages                             lasselehtinen/laravel-conventions-checker - 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. lasselehtinen/laravel-conventions-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lasselehtinen/laravel-conventions-checker
=========================================

grumphp config to automatically check conventions for Laravel projects

v6.0.1(1y ago)2210.4k↓12.5%33MIT

Since May 15Pushed 1y ago3 watchersCompare

[ Source](https://github.com/lasselehtinen/laravel-conventions-checker)[ Packagist](https://packagist.org/packages/lasselehtinen/laravel-conventions-checker)[ RSS](/packages/lasselehtinen-laravel-conventions-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (25)Used By (3)

Goal
----

[](#goal)

Configuration for [grumphp](https://github.com/phpro/grumphp) that is checking on each commit that the committed code passes the unit tests, complies with the PSR2 coding style and static analysis check. It runs the following checks:

- Check that composer.json is valid
- Check that composer does not have any dependencies for known security vulnerabilities with [Local PHP Security Checker](https://github.com/fabpot/local-php-security-checker)
- Check that the PHP syntax is valid
- Check that commit does not contain any debugging (var\_dump, die, exit)
- Check that code complies with the PSR2 coding style
- Perform static code analysis using [phpstan](https://github.com/phpstan/phpstan)
- Check code for unnecessary complexity etc. with [PHP Mess Detector](https://github.com/phpmd/phpmd)
- Check that unit tests pass with PHPUnit

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

[](#installation)

### 1. Add checker to your `composer.json`:

[](#1-add-checker-to-your-composerjson)

```
composer require --dev lasselehtinen/laravel-conventions-checker

```

### 2. Download Local PHP Security Checker

[](#2-download-local-php-security-checker)

Download a binary from the [Releases page on Github](https://github.com/fabpot/local-php-security-checker/releases), rename it to `local-php-security-checker` and make it executable.

### 3. Add path to grumphp configuration file to your `composer.json`'s extra:

[](#3-add-path-to-grumphp-configuration-file-to-your-composerjsons-extra)

```
    "extra": {
        "grumphp": {
            "config-default-path": "vendor/lasselehtinen/laravel-conventions-checker/grumphp.yml"
        }
    }

```

Test suites
-----------

[](#test-suites)

If you want to run the coding syntax, style or static analysis checks only, you can run the following commands:

```
vendor/bin/grumphp run --testsuite=syntax
vendor/bin/grumphp run --testsuite=style
vendor/bin/grumphp run --testsuite=static

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance42

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~90 days

Recently: every ~270 days

Total

24

Last Release

477d ago

Major Versions

v1.6 → v2.02021-02-22

v2.0 → v3.02021-05-17

v3.1.6 → v4.0.02022-02-09

v4.0.1 → v5.0.02023-12-19

v5.0.0 → v6.0.02024-11-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/6697fc2a4266c4d9a5526043fa45b172881bd09b5d1743751e6ae70f9104ee73?d=identicon)[lasleh](/maintainers/lasleh)

---

Top Contributors

[![lasselehtinen](https://avatars.githubusercontent.com/u/1290186?v=4)](https://github.com/lasselehtinen "lasselehtinen (2 commits)")[![metalcamp](https://avatars.githubusercontent.com/u/21967668?v=4)](https://github.com/metalcamp "metalcamp (1 commits)")

### Embed Badge

![Health badge](/badges/lasselehtinen-laravel-conventions-checker/health.svg)

```
[![Health](https://phpackages.com/badges/lasselehtinen-laravel-conventions-checker/health.svg)](https://phpackages.com/packages/lasselehtinen-laravel-conventions-checker)
```

###  Alternatives

[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

38244.6k16](/packages/ec-europa-toolkit)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[jdlabails/php-project-analyzer-bundle

Symfony Bundle for PhpProjectAnalyzer

1210.8k](/packages/jdlabails-php-project-analyzer-bundle)

PHPackages © 2026

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