PHPackages                             rector/rector-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rector/rector-php-parser

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

rector/rector-php-parser
========================

Rector upgrades rules for PHP-Parser

0.14.0(3y ago)398.8k1MITPHPPHP &gt;=8.1

Since Sep 26Pushed 1y ago2 watchersCompare

[ Source](https://github.com/rectorphp/rector-php-parser)[ Packagist](https://packagist.org/packages/rector/rector-php-parser)[ RSS](/packages/rector-rector-php-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (3)Used By (0)

Rector Rules for PHPParser
==========================

[](#rector-rules-for-phpparser)

See available [PHPParser rules](/docs/rector_rules_overview.md)

Install
-------

[](#install)

You can install this package with composer:

```
composer require rector/rector-php-parser:dev-main --dev
```

Use Sets
--------

[](#use-sets)

To add a set to your config, use `Rector\PhpParser\Set\PhpParserSetList` class and pick one of constants:

```
use Rector\PhpParser\Set\PhpParserSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        PhpParserSetList::PHP_PARSER_50
    ]);
};
```

Learn Rector Faster
-------------------

[](#learn-rector-faster)

Rector is a tool that [we develop](https://getrector.org/) and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:

- read a book - [The Power of Automated Refactoring](https://leanpub.com/rector-the-power-of-automated-refactoring)
- hire our experienced team to [improve your code base](https://getrector.org/contact)

Both ways support us to and improve Rector in sustainable way by learning from practical projects.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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

1331d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (7 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[milo/hydrator

Hydrates object from array, exports object to array

2571.9k](/packages/milo-hydrator)[logoscon/acf-plus

Common utility classes for the Advanced Custom Fields (Pro) plugin on WordPress.

1023.3k](/packages/logoscon-acf-plus)

PHPackages © 2026

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