PHPackages                             headercat/phpstan-extension-ide-helper - 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. headercat/phpstan-extension-ide-helper

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

headercat/phpstan-extension-ide-helper
======================================

PHPStan extension IDE helper, provides dummy PHPStan namespace classes and functions.

2.2.3(4d ago)934.4k↓36.9%[1 issues](https://github.com/headercat/phpstan-extension-ide-helper/issues)3MITPHPCI passing

Since Feb 13Pushed 4w ago1 watchersCompare

[ Source](https://github.com/headercat/phpstan-extension-ide-helper)[ Packagist](https://packagist.org/packages/headercat/phpstan-extension-ide-helper)[ RSS](/packages/headercat-phpstan-extension-ide-helper/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (12)Versions (268)Used By (3)

phpstan-extension-ide-helper
============================

[](#phpstan-extension-ide-helper)

PHPStan extension IDE helper, provides dummy PHPStan namespace classes and functions.

PHPStan is distributed via PHAR file rather than pure PHP files. While this is perfectly adequate for using PHPStan, it makes writing PHPStan's extensions a pain. Most IDEs and autocompletion tools cannot reference the code inside PHAR packages.

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

[](#installation)

```
composer require --dev headercat/phpstan-extension-ide-helper
```

Or you can manually add into `composer.json`.

```
{
  "require-dev": {
    "phpstan/phpstan": "^2.0.0-or-any-version-you-want",
    "headercat/phpstan-extension-ide-helper": "*"
  }
}
```

Contributing
------------

[](#contributing)

The job creating a new release will be automatically executed every each 30 minutes. But if PHPStan release a new version before next 30 minutes iteration occurs, you can write a comment on [Issue #1](https://github.com/headercat/phpstan-extension-ide-helper/issues/1) to execute the job manually.

How it works?
-------------

[](#how-it-works)

1. Clone `phpstan/phpstan-src` repository to `/phpstan`.
2. Scan all PHP files from `/phpstan`.
3. Add `return;` after namespace declaration to all scanned files from step 2.
4. Write them to a new directory `/main`.
5. Find composer dependencies that starts with `phpstan/` from `/phpstan/composer.json`.
6. Add them to `/main/composer.json`.
7. Done!

License
-------

[](#license)

Licensed under the MIT license.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Recently: every ~7 days

Total

267

Last Release

4d ago

Major Versions

1.12.28 → 2.1.182025-07-18

1.12.29 → 2.1.262025-09-16

1.12.31 → 2.1.292025-09-25

1.12.32 → 2.1.302025-10-02

1.12.33 → 2.1.412026-03-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51209191?v=4)[Ji Yong, Kim](/maintainers/nemorize)[@nemorize](https://github.com/nemorize)

---

Top Contributors

[![nemorize](https://avatars.githubusercontent.com/u/51209191?v=4)](https://github.com/nemorize "nemorize (6 commits)")

---

Tags

ide-helperphpstan

### Embed Badge

![Health badge](/badges/headercat-phpstan-extension-ide-helper/health.svg)

```
[![Health](https://phpackages.com/badges/headercat-phpstan-extension-ide-helper/health.svg)](https://phpackages.com/packages/headercat-phpstan-extension-ide-helper)
```

###  Alternatives

[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M118](/packages/deptrac-deptrac)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[spatie/typescript-transformer

This is my package typescript-transformer

3957.8M27](/packages/spatie-typescript-transformer)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M291](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

32870.1k106](/packages/symfony-ai-agent)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87718.9k56](/packages/ticketswap-phpstan-error-formatter)

PHPackages © 2026

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