PHPackages                             m0hanraj/phpstan-config - 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. m0hanraj/phpstan-config

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

m0hanraj/phpstan-config
=======================

PHPStan configuration for WordPress VIP plugins and themes

v0.1.0(8mo ago)05MITPHP &gt;=7.4CI passing

Since Sep 4Pushed 8mo agoCompare

[ Source](https://github.com/m0hanraj/phpstan-config)[ Packagist](https://packagist.org/packages/m0hanraj/phpstan-config)[ RSS](/packages/m0hanraj-phpstan-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

phpstan-config
==============

[](#phpstan-config)

This library contains PHPStan configuration for WordPress plugins and themes.

### Minimal requirements

[](#minimal-requirements)

- PHP 8.2

Development setup
-----------------

[](#development-setup)

To build the package

PHP setup

- `composer install`

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

[](#installation)

Composer install:

```
composer require --dev m0hanraj/phpstan-config
```

Usage
-----

[](#usage)

### Using the ruleset

[](#using-the-ruleset)

Create a `phpstan.neon.dist` file in the root of your project and add the below config. Feel free to alter the `paths` based on your project requirements

```
parameters:
    level: max
    paths:
        # adjust the filename / directory name according to project needs.
        - plugin.php
        - includes/
```

### Usage with Composer

[](#usage-with-composer)

Add the following to `scripts` section in `composer.json` file and run `composer phpstan`

```
"phpstan": "phpstan analyse --memory-limit=2048M"
```

Add the following to generate baseline file for existing plugins and run `composer phpstan-baseline`

```
"phpstan-baseline": "phpstan analyse -b --allow-empty-baseline"
```

Tagging and releasing
---------------------

[](#tagging-and-releasing)

The content schema uses Semantic Versioning `semver` for versioning. The package is released using [GitHub Releases](https://docs.github.com/en/github/administering-a-repository/releasing-projects-on-github/about-releases). To create a new release, follow these steps:

- Update the relevant files with the new version. Commit the updated files.
- Push the changes to the `main` branch, by merging the associated pull request
- Create a release targeting the `main` branch within GitHub.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44a340a50f8a16895033840e8cecbcd4ca91e04da023c59c8d289105e9c367d2?d=identicon)[m0hanraj](/maintainers/m0hanraj)

---

Top Contributors

[![mohanrajpac](https://avatars.githubusercontent.com/u/19469816?v=4)](https://github.com/mohanrajpac "mohanrajpac (2 commits)")

### Embed Badge

![Health badge](/badges/m0hanraj-phpstan-config/health.svg)

```
[![Health](https://phpackages.com/badges/m0hanraj-phpstan-config/health.svg)](https://phpackages.com/packages/m0hanraj-phpstan-config)
```

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

68187.1k82](/packages/codeigniter4-devkit)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)

PHPackages © 2026

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