laravel-conventions-checker maintained by lasselehtinen
Description
grumphp config to automatically check conventions for Laravel projects
Author
Last update
2026/11/28 10:25
(dev-master)
License
Downloads
13 245
Last update
2026/11/28 10:25
License
Require
- php-parallel-lint/php-parallel-lint ^1.4
- php ^8.2
- phpro/grumphp ^2.27
- phpmd/phpmd ^3.0
- larastan/larastan ^3.15
- laravel/pint ^1.13
- ekino/phpstan-banned-code ^3.2
Last update
2026/11/28 10:25
License
Require
- php ^8.2
- phpro/grumphp ^2.27
- phpmd/phpmd ^3.0
- larastan/larastan ^3.15
- laravel/pint ^1.13
- php-parallel-lint/php-parallel-lint ^1.4
- ekino/phpstan-banned-code ^3.2
Last update
2026/11/20 18:20
License
Require
- php ^8.2
- phpro/grumphp ^2.27
- phpmd/phpmd ^3.0
- larastan/larastan ^3.15
- laravel/pint ^1.13
- php-parallel-lint/php-parallel-lint ^1.4
Last update
2026/10/27 15:48
License
Require
- phpro/grumphp ^2.3
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.7
- larastan/larastan ^3.0
- php-parallel-lint/php-parallel-lint ^1.4
Last update
2025/01/27 11:18
License
Require
- phpro/grumphp ^2.3
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.7
- larastan/larastan ^3.0
- php-parallel-lint/php-parallel-lint ^1.4
Last update
2024/11/15 18:22
License
Require
- phpro/grumphp ^2.3
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.7
- larastan/larastan ^3.0
- php-parallel-lint/php-parallel-lint ^1.4
Last update
2023/12/19 10:19
License
Require
- phpro/grumphp ^2.3
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.7
- larastan/larastan ^2.7.0
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2023/12/08 12:25
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- larastan/larastan ^2.7.0
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2022/02/09 11:46
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^2.0
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/11/19 12:31
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^1.0
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/11/19 12:21
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^1.0
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/11/15 11:24
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^0.7
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/11/15 09:02
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^0.7
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/10/27 12:03
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^0.7
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/10/27 11:58
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^0.7
- php-parallel-lint/php-parallel-lint ^1.3
Last update
2021/05/17 10:28
License
Require
- phpro/grumphp ^1.2
- phpmd/phpmd ^2.10
- squizlabs/php_codesniffer ^3.6
- nunomaduro/larastan ^0.7
Last update
2021/02/22 12:20
License
Require
- phpro/grumphp ^1.0
- phpmd/phpmd ^2.9
- squizlabs/php_codesniffer ^3.5
- nunomaduro/larastan ^0.6
Last update
2020/09/08 17:54
License
Require
- phpro/grumphp ^0.22
- phpmd/phpmd ^2.9
- sensiolabs/security-checker ^6.0
- squizlabs/php_codesniffer ^3.5
- nunomaduro/larastan ^0.6
Last update
2020/01/30 12:39
License
Require
- phpro/grumphp ^0.17
- phpmd/phpmd ^2.7
- sensiolabs/security-checker ^6.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.5
Last update
2019/12/26 18:27
License
Require
- phpro/grumphp ^0.16
- phpmd/phpmd ^2.7
- sensiolabs/security-checker ^6.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.5
Last update
2019/09/29 21:14
License
Require
- phpro/grumphp ^0.16
- phpmd/phpmd ^2.7
- sensiolabs/security-checker ^6.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.4
Last update
2019/09/04 09:29
License
Require
- phpro/grumphp ^0.15.2
- phpmd/phpmd ^2.7
- sensiolabs/security-checker ^6.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.4
Last update
2019/06/07 14:16
License
Require
- phpro/grumphp ^0.15.2
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.3
Last update
2019/06/07 14:07
License
Require
- phpro/grumphp ^0.15.2
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.3
Last update
2019/06/07 13:53
License
Require
- phpro/grumphp ^0.15.2
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.3
Last update
2019/05/29 14:02
License
Require
- phpro/grumphp ^0.15.2
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.3
Last update
2019/05/18 16:44
License
Require
- phpro/grumphp ^0.16
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.4
- nunomaduro/larastan ^0.3
Last update
2019/05/15 11:36
License
Require
- phpro/grumphp ^0.15
- phpmd/phpmd ^2.6
- sensiolabs/security-checker ^5.0
- squizlabs/php_codesniffer ^3.2
- nunomaduro/larastan ^0.3.11
Goal
Configuration for 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
- 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
- Check code for unnecessary complexity etc. with PHP Mess Detector
- Check that unit tests pass with PHPUnit
Installation
1. Add checker to your composer.json:
composer require --dev lasselehtinen/laravel-conventions-checker
2. Download Local PHP Security Checker
Download a binary from the Releases page on Github, rename it to local-php-security-checker and make it executable.
3. Add path to grumphp configuration file to your composer.json's extra:
"extra": {
"grumphp": {
"config-default-path": "vendor/lasselehtinen/laravel-conventions-checker/grumphp.yml"
}
}
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
The MIT License (MIT). Please see License File for more information.