efabrica / rector-nette
Rector upgrades rules for Nette Framework
Package info
github.com/efabrica-team/rector-nette
Type:rector-extension
pkg:composer/efabrica/rector-nette
Requires
- php: >=8.0
- rector/rector: ^0.14
Requires (Dev)
- nette/application: ^3.1
- nette/di: ^3.0
- nette/forms: 3.0.*
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.3
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^9.5
- rector/phpstan-rules: ^0.5.12
- symplify/easy-ci: ^11.1
- symplify/easy-coding-standard: ^11.1
- symplify/monorepo-builder: ^11.1
- symplify/phpstan-extensions: ^11.1
- symplify/phpstan-rules: ^11.1.2
- symplify/rule-doc-generator: ^11.1
- symplify/vendor-patches: ^11.1
Conflicts
- rector/rector: <0.14
This package is auto-updated.
Last update: 2026-05-14 21:53:58 UTC
README
See available Nette rules
Install
This package is a Rector extension developed by community around Nette. To add it, install package as dependency:
composer require efabrica/rector-nette --dev
Use Sets
To add a set to your config, use RectorNette\Set\NetteSetList class and pick one of constants:
use RectorNette\Set\NetteSetList; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ NetteSetList::NETTE_24, ]); };
Learn Rector Faster
Rector is a tool that we develop 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
- hire our experienced team to improve your code base
Both ways support us to and improve Rector in sustainable way by learning from practical projects.