PHPackages                             matla/phpstancs - 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. matla/phpstancs

Abandoned → [no needed any more https://blog.jetbrains.com/phpstorm/2020/07/phpstan-and-psalm-support-coming-to-phpstorm/](/?search=no%20needed%20any%20more%20https%3A%2F%2Fblog.jetbrains.com%2Fphpstorm%2F2020%2F07%2Fphpstan-and-psalm-support-coming-to-phpstorm%2F)ArchivedPhpstan-extension[Utility &amp; Helpers](/categories/utility)

matla/phpstancs
===============

Allows you to fob off the phpStan report into phpStorm

0.0.4(6y ago)91.1k1GPL-3.0PHPPHP ^7.1

Since Jan 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/matlad/phpstancs)[ Packagist](https://packagist.org/packages/matla/phpstancs)[ RSS](/packages/matla-phpstancs/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Abandoned
=========

[](#abandoned)

no more needed phpstorm support phpsan now (EAP 2020.3).

phpStanCs
=========

[](#phpstancs)

This is small hack, that allows you to fob off the phpStan report into phpStorm as a PHP code sniffer. This is not really good solution, but i don't know Java and this wos easier for me. This is for now, till plugin would be created. I heard somewhere, that somebody may working on it.

[![notice example](resources/readmeImg/noticeExample.png)](resources/readmeImg/noticeExample.png)

[![inspection example](resources/readmeImg/inspectionExample.png)](resources/readmeImg/inspectionExample.png)

Install
-------

[](#install)

You need composer Than go to project directory and run in console

```
composer require --dev matla/phpstancs
```

Usage and settings
------------------

[](#usage-and-settings)

### PhpStorm settings

[](#phpstorm-settings)

Open File-&gt;Settings-&gt;Language &amp; Frameworks -&gt; PHP -&gt; Quality Tools -&gt; Code Sniffer and set path to **vendor/matla/phpstancs/bin/phpcs**[![img](resources/readmeImg/setPhpStorm1.png)](resources/readmeImg/setPhpStorm1.png)You also need allowed inspection from phpcs [![img2](resources/readmeImg/setPhpStorm2.png)](resources/readmeImg/setPhpStorm2.png)

### PhpStan and PhpStanCS setup

[](#phpstan-and-phpstancs-setup)

Config phpStan is possible only by file phpstan.neon in root directory of project (location of composer.json). If file like this exist, than you must install this extension either automatically using "phpstan/extension-installer" or by including in your phpstan.neon.
eg.

```
includes:
	- vendor/matla/phpstancs/extension.neon
```

Settings for phpStanCs are in same file. It is parameter runCS (bool), which turn on/of phpcs inspection which is marget with php stan results.

```
parameters:
    phpstancs:
	    runCS : true
```

Authors
-------

[](#authors)

- Adam Mátl

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% 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 ~127 days

Total

4

Last Release

2341d ago

PHP version history (2 changes)0.0.1PHP ^7.2

0.0.2PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9724050?v=4)[Adam Mátl](/maintainers/matlad)[@matlad](https://github.com/matlad)

---

Top Contributors

[![matlad](https://avatars.githubusercontent.com/u/9724050?v=4)](https://github.com/matlad "matlad (39 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (1 commits)")

---

Tags

phpstanphpstormPHPStanphpstorm

### Embed Badge

![Health badge](/badges/matla-phpstancs/health.svg)

```
[![Health](https://phpackages.com/badges/matla-phpstancs/health.svg)](https://phpackages.com/packages/matla-phpstancs)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4569.5M264](/packages/ergebnis-phpstan-rules)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4813.1M83](/packages/shipmonk-dead-code-detector)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87670.5k53](/packages/ticketswap-phpstan-error-formatter)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39250.0k28](/packages/ec-europa-toolkit)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20276.8k20](/packages/shopsys-coding-standards)

PHPackages © 2026

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