jcergolj/rector-for-laravel
最新稳定版本:v0.9
Composer 安装命令:
composer require jcergolj/rector-for-laravel
包简介
Rector rules for Laravel projects
README 文档
README
A reusable Rector package for Laravel projects, containing custom rules and default configuration to enforce consistent refactoring patterns across multiple projects.
Installation
Install the package in your Laravel project:
composer require jcergolj/rector-for-laravel --dev
This package also depends on:
These will be pulled in automatically if not already installed.
⚙️ Usage Options
You can use the default rector.php config file in two ways:
✅ Option 1: Publish the Config to Project Root (Laravel Style)
You can publish the default rector.php file to the root of your Laravel project using:
php artisan vendor:publish --tag=rector-for-laravel-config
This will copy rector.php from the package into the root of your Laravel project:
./rector.php
You can then modify this file to suit your project-specific rules and paths.
🟡 Option 2: Use the Config Directly from the Package
You can run Rector with the config file located in the package itself:
vendor/bin/rector process --config=vendor/jcergolj/rector-for-laravel/config/rector.php
This is a good option if you want to keep the default setup with no local modifications.
📄 License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 148
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-05