| Package Data | |
|---|---|
| Maintainer Username: | driftingly |
| Package Create Date: | 2021-03-19 |
| Package Last Update: | 2025-11-04 |
| Home Page: | http://getrector.org |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-05 15:02:42 |
| Package Statistics | |
|---|---|
| Total Downloads: | 8,010,873 |
| Monthly Downloads: | 574,904 |
| Daily Downloads: | 26,221 |
| Total Stars: | 1,058 |
| Total Watchers: | 15 |
| Total Forks: | 88 |
| Total Open Issues: | 22 |
See available Laravel rules
This package is a Rector extension developed by the Laravel community.
Install the RectorLaravel package as dependency:
composer require driftingly/rector-laravel --dev
To add a set to your config, use RectorLaravel\Set\LaravelSetList class and pick one of the constants:
use RectorLaravel\Set\LaravelSetList;
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
LaravelSetList::LARAVEL_90
]);
};
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:
Both ways support us to and improve Rector in sustainable way by learning from practical projects.