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.4(3w ago)014.9k2[1 PRs](https://github.com/diviky/code-analysis/pulls)5MITPHPPHP ^8.3CI passing

Since Jun 10Pushed 3w 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 1w ago

READMEChangelogDependencies (88)Versions (22)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

57

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

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

Recently: every ~84 days

Total

20

Last Release

27d 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 (32 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[aedart/athenaeum

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

265.2k](/packages/aedart-athenaeum)[lion/bundle

Lion-framework configuration and initialization package

132.4k5](/packages/lion-bundle)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k17.3k100](/packages/elgg-elgg)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39255.4k37](/packages/ec-europa-toolkit)

PHPackages © 2026

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