rector/rector-php-parser
最新稳定版本:0.14.0
Composer 安装命令:
composer require rector/rector-php-parser
包简介
Rector upgrades rules for PHP-Parser
README 文档
README
See available PHPParser rules
Install
You can install this package with composer:
composer require rector/rector-php-parser:dev-main --dev
Use Sets
To add a set to your config, use Rector\PhpParser\Set\PhpParserSetList class and pick one of constants:
use Rector\PhpParser\Set\PhpParserSetList; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ PhpParserSetList::PHP_PARSER_50 ]); };
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.
统计信息
- 总下载量: 98.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-17