guanguans/rector-rules
A collection of custom Rector rules for PHP and Laravel projects that automates code refactoring, modernization, and upgrades. Register the rule sets in your rector.php config to enforce consistent standards and streamline migrations with less manual work.
RenameStaticMethodRector for Str UUID static methods turns a manual, error-prone sweep across the codebase into a repeatable automated codemod. This directly de-risks Laravel major-version upgrades and UUID-strategy changes (e.g. moving from Str::uuid()/orderedUuid() toward UUIDv7-style APIs), letting you commit to a framework upgrade date with confidence rather than padding the estimate for hand-editing.Adopt when:
Str UUID changes covered in 1.9.2) where manual edits would touch many files.Look elsewhere when:
For executives: This is a low-cost developer-productivity dependency that converts risky, manual framework upgrades into automated, reviewable pull requests. The latest 1.9.2 release extends its coverage to Laravel's Str UUID helper methods — exactly the kind of small, recurring API drift that otherwise silently accumulates as technical debt. Cost is a Composer dependency; the return is shorter upgrade cycles and fewer upgrade-related regressions. No new platform, no vendor lock-in, no headcount.
For engineering: guanguans/rector-rules supplies Rector rules for Laravel/PHP refactoring. 1.9.2 adds RenameStaticMethodRector handling for Str-class UUID static methods, so UUID-helper migrations become a codemod instead of a grep-and-edit exercise. Recommend pinning to ^1.9, running new rules on a dedicated branch, and reviewing the resulting diff like any other PR. Treat each rule as opt-in: enable, verify against tests, keep or drop. Note this is a patch-level release carrying a new feature — pin exact versions and read release notes per bump rather than floating.
How can I help you explore Laravel packages today?