rector / rector-src
Instant Upgrade and Automated Refactoring of any PHP code
Fund package maintenance!
tomasvotruba
Installs: 369 829
Dependents: 13
Suggesters: 0
Security: 0
Stars: 121
Watchers: 5
Forks: 416
pkg:composer/rector/rector-src
Requires
- php: ^8.2
- clue/ndjson-react: ^1.3
- composer/pcre: ^3.3.0
- composer/semver: ^3.4
- composer/xdebug-handler: ^3.0.5
- doctrine/inflector: ^2.1
- illuminate/container: ^11.46
- nette/utils: ^4.0
- nikic/php-parser: ^5.6.2
- ondram/ci-detector: ^4.2
- phpstan/phpdoc-parser: ^2.3
- phpstan/phpstan: ^2.1.26
- react/event-loop: ^1.5
- react/promise: ^3.3
- react/socket: ^1.16
- rector/extension-installer: ^0.11.2
- rector/rector-doctrine: dev-main
- rector/rector-downgrade-php: dev-main
- rector/rector-phpunit: dev-main
- rector/rector-symfony: dev-main
- sebastian/diff: ^6.0
- symfony/console: ^6.4.24
- symfony/filesystem: ^6.4
- symfony/finder: ^6.4
- symfony/process: ^6.4
- symplify/easy-parallel: ^11.2.2
- symplify/rule-doc-generator-contracts: ^11.2
- webmozart/assert: ^1.11
Requires (Dev)
- nette/robot-loader: ^4.1
- php-parallel-lint/php-parallel-lint: ^1.4
- phpecs/phpecs: ^2.2
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-webmozart-assert: ^2.0
- phpunit/phpunit: ^11.5
- rector/jack: ^0.2.5
- rector/release-notes-generator: ^0.3
- rector/swiss-knife: ^2.3
- rector/type-perfect: ^2.1
- shipmonk/composer-dependency-analyser: ^1.8
- symplify/phpstan-extensions: ^12.0
- symplify/phpstan-rules: ^14.8
- symplify/vendor-patches: ^11.5
- tomasvotruba/class-leak: ^2.0
- tracy/tracy: ^2.10
Replaces
- rector/rector: 2.2.5
- dev-main
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-rc3
- 2.0.0-rc2
- 2.0.0-rc1
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.19.8
- 0.19.7
- 0.19.6
- 0.19.5
- 0.19.4
- 0.19.3
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.13
- 0.18.12
- 0.18.11
- 0.18.10
- 0.18.9
- 0.18.8
- 0.18.7
- 0.18.6
- 0.18.5
- 0.18.4
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.13
- 0.17.12
- 0.17.11
- 0.17.10
- 0.17.9
- 0.17.8
- 0.17.7
- 0.17.6
- 0.17.5
- 0.17.4
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.25
- 0.15.24
- 0.15.23
- 0.15.22
- 0.15.21
- 0.15.20
- 0.15.19
- 0.15.18
- 0.15.17
- 0.15.16
- 0.15.15
- 0.15.14
- 0.15.13
- 0.15.12
- 0.15.11
- 0.15.10
- 0.15.9
- 0.15.8
- 0.15.7
- 0.15.6
- 0.15.5
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.8
- 0.14.7
- 0.14.6
- 0.14.5
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.10
- 0.13.9
- 0.13.8
- 0.13.7
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.23
- 0.12.22
- 0.12.21
- 0.12.20
- 0.12.19
- 0.12.18
- 0.12.17
- 0.12.16
- 0.12.15
- 0.12.14
- 0.12.13
- 0.12.12
- 0.12.11
- 0.12.10
- 0.12.9
- 0.12.8
- 0.12.7
- 0.12.6
- 0.12.5
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.60
- 0.11.59
- 0.11.58
- 0.11.57
- 0.11.56
- 0.11.55
- 0.11.54
- 0.11.53
- 0.11.52
- 0.11.51
- 0.11.50
- 0.11.49
- 0.11.48
- 0.11.47
- 0.11.46
- 0.11.45
- 0.11.44
- 0.11.43
- 0.11.42
- 0.11.41
- 0.11.40
- 0.11.39
- 0.11.38
- 0.11.37
- 0.11.36
- 0.11.35
- 0.11.34
- 0.11.33
- 0.11.32
- 0.11.31
- 0.11.30
- 0.11.29
- 0.11.28
- 0.11.27
- 0.11.26
- 0.11.25
- 0.11.24
- 0.11.23
- 0.11.22
- 0.11.21
- 0.11.20
- 0.11.19
- 0.11.18
- 0.11.17
- 0.11.16
- 0.11.15
- 0.11.14
- 0.11.13
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.22
- 0.10.21
- 0.10.20
- 0.10.19
- 0.10.18
- 0.10.17
- 0.10.16
- 0.10.15
- 0.10.14
- 0.10.13
- 0.10.12
- 0.10.11
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.33
- 0.9.32
- 0.9.31
- 0.9.30
- 0.9.29
- 0.9.28
- 0.9.27
- 0.9.26
- 0.9.25
- 0.9.24
- 0.9.23
- 0.9.22
- 0.9.21
- 0.9.20
- 0.9.19
- 0.9.18
- 0.9.17
- 0.9.16
- 0.9.15
- 0.9.14
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.56
- 0.8.55
- 0.8.54
- 0.8.53
- 0.8.52
- 0.8.51
- 0.8.50
- 0.8.49
- 0.8.48
- 0.8.47
- 0.8.46
- 0.8.45
- 0.8.44
- 0.8.43
- 0.8.42
- 0.8.41
- 0.8.40
- 0.8.39
- 0.8.38
- 0.8.37
- 0.8.36
- 0.8.35
- 0.8.34
- 0.8.33
- 0.8.32
- 0.8.31
- 0.8.30
- 0.8.29
- 0.8.28
- 0.8.27
- 0.8.26
- 0.8.25
- 0.8.24
- 0.8.23
- 0.8.22
- 0.8.21
- 0.8.20
- 0.8.19
- 0.8.18
- 0.8.17
- 0.8.16
- 0.8.15
- 0.8.14
- 0.8.13
- 0.8.12
- 0.8.11
- 0.8.10
- 0.8.9
- v0.8.8
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.65
- v0.7.64
- v0.7.63
- v0.7.62
- v0.7.61
- v0.7.60
- v0.7.59
- v0.7.58
- v0.7.57
- v0.7.56
- v0.7.55
- v0.7.54
- v0.7.53
- v0.7.52
- v0.7.51
- v0.7.50
- v0.7.49
- v0.7.48
- v0.7.47
- v0.7.46
- v0.7.45
- v0.7.44
- v0.7.43
- v0.7.42
- v0.7.41
- v0.7.40
- v0.7.39
- v0.7.38
- v0.7.37
- v0.7.36
- v0.7.35
- v0.7.34
- v0.7.33
- v0.7.32
- v0.7.31
- v0.7.30
- v0.7.29
- v0.7.28
- v0.7.27
- v0.7.26
- v0.7.25
- v0.7.24
- v0.7.23
- v0.7.22
- v0.7.21
- v0.7.20
- v0.7.19
- v0.7.18
- v0.7.17
- v0.7.16
- v0.7.15
- v0.7.14
- v0.7.13
- v0.7.12
- v0.7.11
- v0.7.10
- v0.7.9
- v0.7.8
- v0.7.7
- v0.7.6
- v0.7.5
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.14
- v0.6.13
- v0.6.12
- v0.6.11
- v0.6.10
- v0.6.9
- v0.6.8
- v0.6.7
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.23
- v0.5.22
- v0.5.21
- v0.5.20
- v0.5.19
- v0.5.18
- v0.5.17
- v0.5.16
- v0.5.15
- v0.5.14
- v0.5.13
- v0.5.12
- v0.5.11
- v0.5.10
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.44
- v0.3.43
- v0.3.42
- v0.3.41
- v0.3.40
- v0.3.39
- v0.3.38
- v0.3.37
- v0.3.36
- v0.3.35
- v0.3.34
- v0.3.33
- v0.3.32
- v0.3.31
- v0.3.30
- v0.3.29
- v0.3.28
- v0.3.27
- v0.3.26
- v0.3.25
- v0.3.24
- v0.3.23
- v0.3.22
- v0.3.21
- v0.3.20
- v0.3.19
- v0.3.18
- v0.3.17
- v0.3.16
- v0.3.15
- v0.3.14
- v0.3.13
- v0.3.12
- v0.3.11
- v0.3.10
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.0
- dev-tv-extract
- dev-inside-class-method
- dev-tv-narrow-printer
- dev-tv-cleanup-comments
- dev-tv-pipe-errate
- dev-closure-bind-to
- dev-tv-cleanup
- dev-clean-up-dynacic
- dev-85-pipe
- dev-typo-fix-example
- dev-tv-depre-22
- dev-tv-depre-20
- dev-tv-match-null
- dev-add-fixture-with-required
- dev-tv-depre-16
- dev-tv-literal
- dev-tv-depre-15
- dev-allow-func
- dev-allow-match-position-named
- dev-pos-nidle
- dev-skip-is-in-assign
- dev-used-as-invokable-multi-params
- dev-tv-remove-null-to-default-pass
- dev-tv-depre-12
- dev-tv-depre-11
- dev-allow-exists
- dev-tv-depre-9
- dev-tv-depre-10
- dev-tv-depre-8
- dev-tv-depre-7
- dev-tv-depre-6
- dev-tv-depre-5
- dev-skip-method-not-exists
- dev-tv-dirname-to-absolute-path
- dev-fix-trailing
- dev-add-back-fixture
- dev-tv-depre-4
- dev-tv-bin-check-short
- dev-tv-rename-exception
- dev-tv-new-init-skip-non-default
- dev-keep-nullable
- dev-tv-depre
- dev-tv-list-unused-rules
- dev-tv-cleanup-2
- dev-tv-nested-ternary-to-match-true
- dev-skip-variadic-not-used
- dev-tv-fix-call-args-string-cast
- dev-skip-caller-signature
- dev-skip-multi-params
- dev-remove-attribute-group-newliner
- dev-remove-on-readonly-prop
- dev-remove-newline-code
- dev-new-liner-clean
- dev-tv-skip-parent-array-spread
- dev-tv-utils-rector-double-check
- dev-bump-nikic-php-parser562
- dev-tv-php-parser-bump
- dev-tv-depre-notice
- dev-tv-double-condition
- dev-tv-depre-strict
- dev-tv-version
- dev-tv-wrap-func-calls-revisit
- dev-skip-used-as-caller
- dev-tv-not-identical-and
- dev-fix-e2e-test-invalid-paths
- dev-skip-possibly-null
- dev-samsonasik-patch-1
- dev-skip-conditional-non-string
- dev-skip-instanceof
- dev-skip-use-callback
- dev-tv-test-php-parser-dev
- dev-remove-moved-test
- dev-tv-add-closure-type-based-on-functin-pass
- dev-alternative-fix-is-phsptan-preload
- dev-add-function-exists
- dev-skip-parent-exists
- dev-tv-add-array-param-of-private-method-based-on-calls
- dev-tv-return-twice-same-new
- dev-tv-tervis
- dev-tv-rector-perf
- dev-tv-mock-objec
- dev-tv-cleanup-next
- dev-tv-finder-scoped
- dev-tv-class-like
- dev-rector-cli-help
- dev-tv-get-class
- dev-tv-named-arg-prepared-sets
- dev-tv-unused
- dev-tv-phpstan-release-fix
- dev-tv-autoconfigure
- dev-tv-config-builder
- dev-tv-add-only-ule
- dev-tv-fix-imports-of-two-routes
- dev-tv-phpunit-warning
- dev-tv-remove-docblock-readonly-property-rule
- dev-tv-fix-default-split-properties
- dev-tv-rector-levels-config
- dev-tv-make-use-of-phpstan-phpdoctype-10
- dev-remove-isset
- dev-0.17.2-branch
- dev-tv-defluent
This package is auto-updated.
Last update: 2025-10-26 17:01:31 UTC
README
This repository (rectorphp/rector-src) is for development Rector only.
Head to rectorphp/rector for documentation, install or creating an issue.
Building rectorphp/rector
Code of this repository requires PHP 8.2. For rector/rector package the builder downgrades code to PHP 7.4+.
How to Contribute
Please read contributing guideline for how to contribute to rector.
Debug Tests
Do you need to measure speed of particular test? Or just check which test fixture is failing? Make use of pretty print:
vendor/bin/phpunit -d --enable-pretty-print
Code of Conduct
This project adheres to a Contributor Code of Conduct By participating in this project and its community, you are expected to uphold this code.
Rector Packages CI Status
Symfony - https://github.com/rectorphp/rector-symfony
PHPUnit - https://github.com/rectorphp/rector-phpunit
Doctrine - https://github.com/rectorphp/rector-doctrine
Downgrade PHP - https://github.com/rectorphp/rector-downgrade-php