PHPackages                             phpstan/phpstan-php-parser - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. phpstan/phpstan-php-parser

AbandonedArchivedPhpstan-extension[Testing &amp; Quality](/categories/testing)

phpstan/phpstan-php-parser
==========================

PHP-Parser extensions for PHPStan

1.1.0(4y ago)233.6M↑28.2%8[1 issues](https://github.com/phpstan/phpstan-php-parser/issues)[1 PRs](https://github.com/phpstan/phpstan-php-parser/pulls)13MITMakefilePHP ^7.1 || ^8.0

Since Nov 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/phpstan/phpstan-php-parser)[ Packagist](https://packagist.org/packages/phpstan/phpstan-php-parser)[ RSS](/packages/phpstan-phpstan-php-parser/feed)WikiDiscussions 1.2.x Synced 3d ago

READMEChangelog (7)Dependencies (5)Versions (12)Used By (13)

⚠️ This extension is no longer maintained. `nikic/PHP-Parser` has all the correct types in its source code, so this extension is no longer needed. ⚠️

PHP-Parser extension for PHPStan
================================

[](#php-parser-extension-for-phpstan)

[![Build](https://github.com/phpstan/phpstan-php-parser/workflows/Build/badge.svg)](https://github.com/phpstan/phpstan-php-parser/actions)[![Latest Stable Version](https://camo.githubusercontent.com/fc89db7159ec2c9f3500bf9f13914981a49b95ac46cde1c252d76cee1b9b61cf/68747470733a2f2f706f7365722e707567782e6f72672f7068707374616e2f7068707374616e2d7068702d7061727365722f762f737461626c65)](https://packagist.org/packages/phpstan/phpstan-php-parser)[![License](https://camo.githubusercontent.com/945e516b522a767ff67925037b6cfc8dd0e3cb7ef59c03ca91bc90417176af30/68747470733a2f2f706f7365722e707567782e6f72672f7068707374616e2f7068707374616e2d7068702d7061727365722f6c6963656e7365)](https://packagist.org/packages/phpstan/phpstan-php-parser)

- [PHPStan](https://phpstan.org/)
- [PHP-Parser](https://github.com/nikic/php-parser)

This extension provides the following feature:

- If you register `PhpParser\NodeVisitor\NameResolver` visitor on `PhpParser\NodeTraverser`, new `$namespacedName` property becomes available on nodes that already have a `$name` property. This extension defines that property.

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

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev phpstan/phpstan-php-parser

```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/phpstan/phpstan-php-parser/extension.neon

```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 62.7% 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 ~213 days

Recently: every ~288 days

Total

11

Last Release

1020d ago

Major Versions

0.12.3 → 1.0.02021-09-13

PHP version history (4 changes)0.9PHP ~7.0

0.10PHP ~7.1

0.12.2PHP ^7.1 || ^8.0

1.2.x-devPHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/104888?v=4)[Ondřej Mirtes](/maintainers/ondrejmirtes)[@ondrejmirtes](https://github.com/ondrejmirtes)

---

Top Contributors

[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (52 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (10 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (7 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (3 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (2 commits)")[![lookyman](https://avatars.githubusercontent.com/u/3863468?v=4)](https://github.com/lookyman "lookyman (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![herndlm](https://avatars.githubusercontent.com/u/5738896?v=4)](https://github.com/herndlm "herndlm (1 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (1 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (1 commits)")

---

Tags

phpphp-parserphp7phpstanstatic-analysisstatic-analyzerstatic-code-analysistesting

###  Code Quality

TestsPHPUnit

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpstan-phpstan-php-parser/health.svg)

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

###  Alternatives

[larastan/larastan

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

6.5k55.4M8.5k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[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.

4853.5M92](/packages/shipmonk-dead-code-detector)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33422.6M557](/packages/spaze-phpstan-disallowed-calls)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M291](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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