PHPackages                             andersundsehr/rector-p - 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. andersundsehr/rector-p

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

andersundsehr/rector-p
======================

rector run file by file (like git add -p)

11.0.3(2w ago)138.5k↑33.2%7GPL-2.0-or-laterPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI failing

Since Aug 7Pushed 2w ago1 watchersCompare

[ Source](https://github.com/andersundsehr/rector-p)[ Packagist](https://packagist.org/packages/andersundsehr/rector-p)[ RSS](/packages/andersundsehr-rector-p/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (20)Versions (17)Used By (7)

rector-p partial rector execution
=================================

[](#rector-p-partial-rector-execution)

install
-------

[](#install)

`composer req andersundsehr/rector-p`

Why should you need this?
-------------------------

[](#why-should-you-need-this)

if you have a large old project and want to use rector, it can be a pain to convert the whole project at once. So you can use rector-p to convert the project file by file. you will get asked for each file that has changes if you want to apply them.

Example
-------

[](#example)

`rector-p` or `vendor/bin/rector-p` if you did not setup your PATH environment variable

[![asciicast](https://camo.githubusercontent.com/b196d646bd7e1f10aaba3681206d2e776b7e93faacac981454a9c12ff6ce954e/68747470733a2f2f61736369696e656d612e6f72672f612f3637313134352e706e67)](https://asciinema.org/a/671145)

### if you only want to run it with a specific path you can do it like this:

[](#if-you-only-want-to-run-it-with-a-specific-path-you-can-do-it-like-this)

`rector-p src/Controller/`
or
`rector-p src/Controller/MyController.php src/Controller/MyOtherController.php`

options you can use:
====================

[](#options-you-can-use)

`rector-p --help`

```
Usage:
  partial [options] [--] [...]

Arguments:
  source                Files or directories to be upgraded.

Options:
  -s, --startOver       Start over with the first file (be default rector-p keeps a record of files that have no changes in them)
  -p, --chunk=CHUNK     chunk(part) definition eg 1/2 (first half) or 2/2 (second half) or 3/10 (third tenth) [default: "1/1"]
  -c, --config=CONFIG   Path to config file [default: "/app/rector.php"]
  -h, --help            Display help for the given command. When no command is given display help for the partial command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

with ♥️ from anders und sehr GmbH
=================================

[](#with-️-from-anders-und-sehr-gmbh)

> If something did not work 😮
> or you appreciate this Extension 🥰 let us know.

> We are hiring

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance97

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~50 days

Total

16

Last Release

15d ago

Major Versions

1.3.1 → 10.0.02025-02-24

1.4.0 → 10.1.42025-09-30

10.2.2 → 11.0.02026-03-10

10.2.7 → 11.0.32026-06-18

PHP version history (4 changes)1.0.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

10.0.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

1.x-devPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

10.2.1PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/471387?v=4)[Matthias Vogel](/maintainers/Kanti)[@Kanti](https://github.com/Kanti)

![](https://www.gravatar.com/avatar/ce27306c234536251754f00414959671d4a775e9cf57cce2f5ea1dca158183d6?d=identicon)[andersundsehr](/maintainers/andersundsehr)

---

Top Contributors

[![Kanti](https://avatars.githubusercontent.com/u/471387?v=4)](https://github.com/Kanti "Kanti (21 commits)")

### Embed Badge

![Health badge](/badges/andersundsehr-rector-p/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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