PHPackages                             eliashaeussler/rector-config - 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. eliashaeussler/rector-config

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

eliashaeussler/rector-config
============================

My personal configuration for Rector

4.0.0(5mo ago)3666.0k—7.5%[1 issues](https://github.com/eliashaeussler/rector-config/issues)18GPL-3.0-or-laterPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Mar 9Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (13)Versions (27)Used By (18)

Rector config
=============

[](#rector-config)

[![Coverage](https://camo.githubusercontent.com/ee14de35d5dbe1cdd541c7787080c0e67acc12bd60c5e080659aeb735878b08e/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c73436f7665726167652f6769746875622f656c6961736861657573736c65722f726563746f722d636f6e6669673f6c6f676f3d636f766572616c6c73)](https://coveralls.io/github/eliashaeussler/rector-config)[![CGL](https://camo.githubusercontent.com/7602e22b36f8d7ed1d520b8969aa18cbb8a87b8726f7232389433bef99f61ccc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c6961736861657573736c65722f726563746f722d636f6e6669672f63676c2e79616d6c3f6c6162656c3d63676c266c6f676f3d676974687562)](https://github.com/eliashaeussler/rector-config/actions/workflows/cgl.yaml)[![Tests](https://camo.githubusercontent.com/e6a879f94470b0fb2c81a433f08586b2b6310e142aa759e94ffa41151a50434e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c6961736861657573736c65722f726563746f722d636f6e6669672f74657374732e79616d6c3f6c6162656c3d7465737473266c6f676f3d676974687562)](https://github.com/eliashaeussler/rector-config/actions/workflows/tests.yaml)[![Supported PHP Versions](https://camo.githubusercontent.com/caae7fab7a90afadbbeccb239872e07ce90fc9980ee37e2ecdd284fa48b79921/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f656c6961736861657573736c65722f726563746f722d636f6e6669672f7068703f6c6f676f3d706870)](https://packagist.org/packages/eliashaeussler/rector-config)

This package contains basic [Rector](https://github.com/rectorphp/rector)config for use in my personal projects. It is not meant to be used anywhere else. I won't provide support and don't accept pull requests for this repo.

🔥 Installation
--------------

[](#-installation)

[![Packagist](https://camo.githubusercontent.com/2854a74c23e603075da94525c3d0ec043770d866afae7b74acd061381d683ae0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6961736861657573736c65722f726563746f722d636f6e6669673f6c6162656c3d76657273696f6e266c6f676f3d7061636b6167697374)](https://packagist.org/packages/eliashaeussler/rector-config)[![Packagist Downloads](https://camo.githubusercontent.com/1c4d115467421cc3e634627c597e89191e4249bec0c7584bafe88b442121be89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c6961736861657573736c65722f726563746f722d636f6e6669673f636f6c6f723d627269676874677265656e)](https://packagist.org/packages/eliashaeussler/rector-config)

```
composer require --dev eliashaeussler/rector-config
```

⚡ Usage
-------

[](#-usage)

```
# rector.php

use EliasHaeussler\RectorConfig\Config\Config;
use EliasHaeussler\RectorConfig\Set\CustomSet;
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Set\ValueObject\SetList;
use Rector\ValueObject\PhpVersion;

return static function (RectorConfig $rectorConfig): void {
    // Optional: Configure PHP version explicitly
    // Can be left out to use the current environment's PHP version
    $phpVersion = PhpVersion::PHP_81;

    // Create config from Rector config object
    $config = Config::create($rectorConfig, $phpVersion)->in(
        __DIR__.'/src',
        __DIR__.'/tests',
    );

    // Skip specific paths
    $config->not(
        __DIR__.'/src/lib',
        __DIR__.'/tests/test-application/vendor',
    );

    // Include default PHPUnit sets
    $config->withPHPUnit();

    // Include default Symfony sets
    $config->withSymfony();

    // Include default TYPO3 sets
    $config->withTYPO3();

    // Include custom sets
    $config->withSets(
        new CustomSet(
            SetList::CODE_QUALITY,
            SetList::CODING_STYLE,
        ),
    );

    // Skip specific rectors
    $config->skip(
        AnnotationToAttributeRector::class,
        [
            __DIR__.'/src/Some/File.php',
        ],
    );

    // Apply configuration
    $config->apply();
};
```

⭐ License
---------

[](#-license)

This project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 74% 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 ~93 days

Total

23

Last Release

165d ago

Major Versions

1.8.0 → 2.0.02023-11-17

2.0.1 → 3.0.02024-02-12

3.2.0 → 4.0.02025-12-04

PHP version history (5 changes)1.1.0PHP ~8.1.0 || ~8.2.0

1.8.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

3.0.4PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

3.2.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

4.0.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/144cefe55242b883c87cb537463f3ba75a0f8198fc5b602b50c838aae31fe7ee?d=identicon)[eliashaeussler](/maintainers/eliashaeussler)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (542 commits)")[![eliashaeussler](https://avatars.githubusercontent.com/u/16313625?v=4)](https://github.com/eliashaeussler "eliashaeussler (190 commits)")

---

Tags

configrector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eliashaeussler-rector-config/health.svg)

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

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)

PHPackages © 2026

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