rector/rector-laravel

This package is abandoned and no longer maintained. The author suggests using the driftingly/rector-laravel package instead.

Rector upgrades rules for Laravel Framework

Installs: 867 097

Dependents: 0

Suggesters: 0

Security: 0

Stars: 316

Watchers: 9

Forks: 32

Open Issues: 3

Type:rector-extension

0.26.1 2023-09-30 18:27 UTC

README

See available Laravel rules

Install

This package is a Rector extension developed by the Laravel community.

Install the RectorLaravel package as dependency:

composer require driftingly/rector-laravel --dev

Use Sets

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_100
    ]);
};

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:

Both ways support us to and improve Rector in sustainable way by learning from practical projects.