contena-cms / contena-rector
Contena specific Rector
Package info
github.com/contena-cms/contena-rector
Type:rector-extension
pkg:composer/contena-cms/contena-rector
0.6.0
2026-10-28 03:35 UTC
Requires
- php: ^8.2
- rector/rector: ^2.6.2
- webmozart/assert: ^1 || ^2
Requires (Dev)
- boundwize/structarmed: ^0.17.2
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.5
- symplify/easy-coding-standard: ~11.2
Suggests
None
Provides
None
Conflicts
- rector/rector: <2.6.2
Replaces
None
README
This project extends Rector with multiple Rules for Contena specific.
See available Contena rules
Install
Make sure to install both contena-cms/contena-rector as well as rector/rector.
composer req contena-cms/contena-rector --dev
Use Sets
To add a set to your config, use Contena\Rector\Set\ContenaSetList class and pick one of constants:
use Rector\Config\RectorConfig; use Contena\Rector\Set\ContenaSetList; return RectorConfig::configure() ->withSets([ ContenaSetList::CONTENA_6_7_0, ]);
Use directly the config
# Clone this repo composer install # Dry Run ./vendor/bin/rector process --config config/contena-6.7.0.php --autoload-file [CONTENA]/vendor/autoload.php [CONTENA]/custom/plugins/MyPlugin --dry-run # Normal Run ./vendor/bin/rector process --config config/contena-6.7.0.php --autoload-file [CONTENA]/vendor/autoload.php [CONTENA]/custom/plugins/MyPlugin
License
Source code is licensed under Apache-2.0. The upstream MIT license is bundled in the NOTICE file.