{"repo":"driftingly/rector-laravel","free":true,"listed":false,"github":"https://github.com/driftingly/rector-laravel","clone":"git clone https://github.com/driftingly/rector-laravel.git","description":"Rector upgrades rules for Laravel","language":"PHP","stars":1268,"topics":["rector","rules","ast","php","instant-upgrades","laravel"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Rector Rules for Laravel Available Rules See all available Laravel rules here. This list includes even the rules that are not yet released, but are available under the dev-main branch. You can also find the released rules on the Rector Find Rule page. Install This package is a Rector extension developed by the Laravel community. Rules for additional first party packages are included as well e.g. Cashier and Livewire. Install as a dev dependency: Automate Laravel Upgrades To automatically apply the correct rules depending on the version of Laravel (or other packages) you are currently on (as detected in the composer.json ), use the following: Manual Configuration To manually add a version set to your config, use RectorLaravel\\Set\\LaravelLevelSetList and pick the constant that matches your target version. Sets for higher versions include sets for lower versions. The sets in RectorLaravel\\Set\\LaravelSetList only contain changes related to a specific version upgrade. For example, the rules in LaravelSetList::LARAVEL 130 apply when upgrading from Laravel 12 to Laravel 13. Additional Sets To improve different aspects of your code, use the sets in RectorLaravel\\Set\\LaravelSetList . Set Purpose --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/driftingly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/driftingly/rector-laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}