# driftingly/rector-laravel

Rector upgrades rules for Laravel

Repository: https://github.com/driftingly/rector-laravel
Canonical: https://ross.abutalabs.com/products/rector-laravel
Homepage: http://getrector.org
Language: PHP
License: MIT
License Family: permissive
Topics: rector, rules, ast, php, instant-upgrades, laravel
Last push: 2026-08-25T20:36:05+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 1994, "days_push": 8, "days_rel": 8, "gap_med": 10, "n_releases_24m": 30}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1272, forks 112 (observed 2026-08-28T04:04:12.125847+00:00)

## What it is
A community-developed Rector extension providing automated upgrade and refactoring rules for Laravel applications. It applies version-specific code transformations based on the Laravel (and related packages like Livewire, Cashier, Faker) versions detected in composer..

## Use cases
- automatically upgrade Laravel codebase to a newer version
- refactor legacy Laravel code to use current framework APIs
- apply Laravel-specific code style and quality improvements
- migrate deprecated Laravel method calls to their replacements
- upgrade Livewire, Cashier, and Faker usage alongside Laravel
- prepare a Laravel app for a PHP version upgrade

## When to choose
- you maintain a Laravel application and want to automate framework version upgrades
- you want to reduce manual effort when migrating deprecated Laravel APIs
- you already use Rector and need Laravel-specific rules
- you want consistent, rule-based refactoring across a large Laravel codebase

## When to avoid
- your project does not use Laravel or the Rector ecosystem
- you need runtime tooling rather than static code transformations
- you require fully hands-off upgrades without code review of automated diffs

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, developer-tools, code-review
- domain: developer-tools, web-development
- platform: php, cli, cross-platform
- tags: rector, laravel, automated-upgrades, refactoring, static-analysis, composer-package, automation, php

## Member repositories
- driftingly/rector-laravel (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:12.125847+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:16.560790+00:00, confidence not recorded.
  - readme: https://github.com/driftingly/rector-laravel (fetched 2026-08-28T04:04:12.125847+00:00, sha 473f10f2fd04)
  - homepage: http://getrector.org (fetched 2026-08-29T12:14:34.081999+00:00, sha adf6616823b2)
  - site_page: https://getrector.com/documentation (fetched 2026-08-29T12:14:34.091449+00:00, sha 7c2e12878352)
- Data as of 2026-08-30T08:39:29.467469+00:00.
