rector / rector-laravel
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
Requires
- php: ^7.2 || ^8.0
- dev-main
- 0.26.1
- 0.26.0
- 0.25.0
- 0.24.1
- 0.24.0
- 0.23.0
- 0.22.1
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.1
- 0.16.0
- 0.15.0
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.1
- 0.13.0
- 0.11.16
- 0.11.15
- 0.11.14
- 0.11.13
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.2
- 0.10.1
- 0.10.0
This package is auto-updated.
Last update: 2023-09-30 18:27:45 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:
- Read the book - The Power of Automated Refactoring
- Hire our experienced team to improve your codebase
Both ways support us to and improve Rector in sustainable way by learning from practical projects.