PHPackages                             diviky/code-analysis - 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. diviky/code-analysis

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

diviky/code-analysis
====================

grumphp config to automatically check conventions for Laravel projects

v4.0.2(4mo ago)014.9k2[1 PRs](https://github.com/diviky/code-analysis/pulls)5MITPHPCI passing

Since Jun 10Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/diviky/code-analysis)[ Packagist](https://packagist.org/packages/diviky/code-analysis)[ RSS](/packages/diviky-code-analysis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (30)Versions (20)Used By (5)

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 [SensioLabs Security Checker](https://github.com/sensiolabs/security-checker)
- 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 diviky/code-analysis

```

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

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

```
    "extra": {
        "grumphp": {
            "config-default-path": "vendor/diviky/code-analysis/grumphp.yml"
        }
    }

```

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

[](#test-suites)

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

```
php artisan self-diagnosis

composer validate

vendor/bin/grumphp run --testsuite=style
vendor/bin/grumphp run --testsuite=static
vendor/bin/php-cs-fixer fix --allow-risky=yes
vendor/bin/psalm
vendor/bin/phpstan analyse src
vendor/bin/testbench package:test --parallel
vendor/bin/phpunit --coverage-html coverage

```

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance77

Regular maintenance activity

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~72 days

Total

18

Last Release

123d ago

Major Versions

v1.1.3 → v2.0.12023-07-27

v2.1.0 → v3.0.12024-10-18

v3.0.5 → v4.0.02025-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/99c172c42e19c2ad0db03c0596a00eb21047df990ba405bb2d1fd57204eb2c2f?d=identicon)[sankar.suda](/maintainers/sankar.suda)

---

Top Contributors

[![sankarsuda](https://avatars.githubusercontent.com/u/798414?v=4)](https://github.com/sankarsuda "sankarsuda (30 commits)")

### Embed Badge

![Health badge](/badges/diviky-code-analysis/health.svg)

```
[![Health](https://phpackages.com/badges/diviky-code-analysis/health.svg)](https://phpackages.com/packages/diviky-code-analysis)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[lasselehtinen/laravel-conventions-checker

grumphp config to automatically check conventions for Laravel projects

2210.4k4](/packages/lasselehtinen-laravel-conventions-checker)

PHPackages © 2026

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