ergebnis/rector-rules
A curated set of custom Rector rules from ergebnis to automate PHP refactoring and style consistency. Includes rules for sorting arrays and match arms, simplifying call arguments, Faker updates, namespace symbol references, and PHPUnit attribute-to-prefix changes.
test* method prefixes).use Example\Core instead of use Example\Core\Routing\Attribute).Adopt if:
Look elsewhere if:
For Executives:
"This package automates tedious, error-prone code refactoring—like updating deprecated APIs or enforcing consistent syntax—saving dev time and reducing technical debt. For example, it can migrate PHPUnit’s new #[Test] attributes to legacy test* methods in hours, not weeks. It’s a low-risk way to modernize our codebase while maintaining backward compatibility."
For Engineering:
*"Rector + ergebnis/rector-rules lets us:
rector process src --dry-run to preview changes before merging. Rules like RemoveNamedArgumentForSingleParameterRector clean up verbose calls like strlen(string: 'hello') to strlen('hello')."*Key Metrics to Highlight:
How can I help you explore Laravel packages today?