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.1.44(1mo ago)919.8k↓22%[1 issues](https://github.com/headercat/phpstan-extension-ide-helper/issues)2MITPHPCI passing

Since Feb 13Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (6)Versions (252)Used By (2)

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

51

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Total

251

Last Release

54d 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://www.gravatar.com/avatar/12807795da10cb0139c1cc631cb308d9ed8a4a0d48348c733266bfdddb580ed5?d=identicon)[nemorize](/maintainers/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

[phpdocumentor/reflection-docblock

With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.

9.4k722.2M1.2k](/packages/phpdocumentor-reflection-docblock)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)

PHPackages © 2026

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