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: 879 633

Dependents: 0

Suggesters: 0

Security: 0

Stars: 425

Watchers: 9

Forks: 43

Open Issues: 5



Tests Code Analysis Packagist Downloads Packagist Version

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

Use Sets

To add a set to your config, use RectorLaravel\Set\LaravelSetList class and pick one of the constants:



use Rector\Config\RectorConfig;
use RectorLaravel\Set\LaravelSetList;

return RectorConfig::configure()


Thank you everyone who works so hard on improving this package:

Hire The Rector Team

Rector is a tool that we develop and share for free, so anyone can automate their refactoring. But not everyone has dozens of hours to understand complexity of abstract-syntax-tree in their own time. That's why we provide commercial support - to save your time.

Would you like to apply Rector on your code base but don't have time for the struggle with your project? Hire the Rector team to get there faster.

Learn Rector Faster

Not everyone has time to understand Rector and AST complexity. You can speed up the process by reading the book The Power of Automated Refactoring. Not only will it help you learn and understand Rector but it supports the project as well.