{ "name": "rector/rector", "description": "Instant upgrade and refactoring of your PHP code", "keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"], "license": "MIT", "bin": ["bin/rector"], "require": { "php": "^7.1", "composer/xdebug-handler": "^1.3", "jean85/pretty-package-versions": "^1.2", "nette/robot-loader": "^3.1", "nette/utils": "^2.5", "nikic/php-parser": "^4.2.1", "phpstan/phpstan": "0.11.3", "sebastian/diff": "^3.0", "symfony/console": "^3.4|^4.2", "symfony/dependency-injection": "^3.4|^4.2", "symfony/finder": "^3.4|^4.2", "symfony/process": "^3.4|^4.2", "symplify/package-builder": "^5.4.6" }, "require-dev": { "ocramius/package-versions": "^1.3", "phpunit/phpunit": "^7.5|^8.0", "symplify/easy-coding-standard": "^5.4.6", "friendsofphp/php-cs-fixer": "^2.14", "symplify/monorepo-builder": "^5.4.6", "symplify/phpstan-extensions": "^5.4.6", "thecodingmachine/phpstan-strict-rules": "^0.11.0", "tracy/tracy": "^2.5" }, "autoload": { "psr-4": { "Rector\\": "src", "Rector\\Celebrity\\": "packages/Celebrity/src", "Rector\\BetterPhpDocParser\\": "packages/BetterPhpDocParser/src", "Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src", "Rector\\CodingStyle\\": "packages/CodingStyle/src", "Rector\\DeadCode\\": "packages/DeadCode/src", "Rector\\Guzzle\\": "packages/Guzzle/src", "Rector\\CodeQuality\\": "packages/CodeQuality/src", "Rector\\NetteToSymfony\\": "packages/NetteToSymfony/src", "Rector\\DomainDrivenDesign\\": "packages/DomainDrivenDesign/src", "Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src", "Rector\\Symfony\\": "packages/Symfony/src", "Rector\\CakePHP\\": "packages/CakePHP/src", "Rector\\Php\\": "packages/Php/src", "Rector\\Jms\\": "packages/Jms/src", "Rector\\Silverstripe\\": "packages/Silverstripe/src", "Rector\\Sensio\\": "packages/Sensio/src", "Rector\\Sylius\\": "packages/Sylius/src", "Rector\\PHPStan\\": "packages/PHPStan/src", "Rector\\PHPUnit\\": "packages/PHPUnit/src", "Rector\\Twig\\": "packages/Twig/src", "Rector\\MysqlToMysqli\\": "packages/MysqlToMysqli/src", "Rector\\PhpParser\\": "packages/PhpParser/src", "Rector\\Doctrine\\": "packages/Doctrine/src", "Rector\\FileSystemRector\\": "packages/FileSystemRector/src", "Rector\\ContributorTools\\": "packages/ContributorTools/src", "Rector\\Laravel\\": "packages/Laravel/src", "Rector\\PhpSpecToPHPUnit\\": "packages/PhpSpecToPHPUnit/src" } }, "autoload-dev": { "psr-4": { "Rector\\Celebrity\\Tests\\": "packages/Celebrity/tests", "Rector\\Tests\\": "tests", "Rector\\BetterPhpDocParser\\Tests\\": "packages/BetterPhpDocParser/tests", "Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests", "Rector\\CakePHP\\Tests\\": "packages/CakePHP/tests", "Rector\\CodeQuality\\Tests\\": "packages/CodeQuality/tests", "Rector\\DeadCode\\Tests\\": "packages/DeadCode/tests", "Rector\\NetteToSymfony\\Tests\\": "packages/NetteToSymfony/tests", "Rector\\CodingStyle\\Tests\\": "packages/CodingStyle/tests", "Rector\\DomainDrivenDesign\\Tests\\": "packages/DomainDrivenDesign/tests", "Rector\\Guzzle\\Tests\\": "packages/Guzzle/tests", "Rector\\Php\\Tests\\": "packages/Php/tests", "Rector\\Jms\\Tests\\": "packages/Jms/tests", "Rector\\Symfony\\Tests\\": "packages/Symfony/tests", "Rector\\Silverstripe\\Tests\\": "packages/Silverstripe/tests", "Rector\\Sensio\\Tests\\": "packages/Sensio/tests", "Rector\\Sylius\\Tests\\": "packages/Sylius/tests", "Rector\\PHPStan\\Tests\\": "packages/PHPStan/tests", "Rector\\PHPUnit\\Tests\\": "packages/PHPUnit/tests", "Rector\\PhpParser\\Tests\\": "packages/PhpParser/tests", "Rector\\Twig\\Tests\\": "packages/Twig/tests", "Rector\\MysqlToMysqli\\Tests\\": "packages/MysqlToMysqli/tests", "Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests", "Rector\\Laravel\\Tests\\": "packages/Laravel/tests", "Rector\\PhpSpecToPHPUnit\\Tests\\": "packages/PhpSpecToPHPUnit/tests", "Rector\\PHPStanExtensions\\": "utils/PHPStanExtensions/src" }, "classmap": [ "packages/Symfony/tests/Rector/FrameworkBundle/AbstractToConstructorInjectionRectorSource", "packages/Symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/Source", "packages/NodeTypeResolver/tests/PerNodeTypeResolver/ParamTypeResolver/Source", "packages/NodeTypeResolver/tests/PerNodeTypeResolver/PropertyTypeResolver/Source", "tests/Source", "tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source", "tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source" ] }, "suggest": { "symplify/easy-coding-standard": "Required to enable '--with-style' option. Use in case you don't have PHP_CodeSniffer or PHP-CS-Fixer yet." }, "scripts": { "complete-check": ["@check-cs", "phpunit", "@phpstan", "@update-docs"], "check-cs": "vendor/bin/ecs check bin packages src tests utils", "fix-cs": [ "vendor/bin/ecs check bin packages src tests utils --fix", "bin/clean_trailing_spaces.sh" ], "phpstan": "vendor/bin/phpstan analyse packages src tests --error-format symplify", "docs": [ "bin/rector dump-rectors -o markdown > docs/AllRectorsOverview.md", "bin/rector dump-nodes -o markdown > docs/NodesOverview.md" ] }, "scripts-descriptions": { "update-docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file" }, "config": { "sort-packages": true } }