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.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| ergebnis/agent-detector | Detect whether an AI/dev agent is present by checking known environment variables. Supports Amp, Antigravity, Augment, Claude Code, OpenAI Codex, Cursor, Gemini CLI, GitHub Copilot, and more. Install via Composer and call Detector::isAgentPresent(). | 9 | 4 | 1 | 2M | 0 | 20.2 | 64.5 | MIT | 1 month ago | |
| ergebnis/classy | ergebnis/classy adds convenient helpers for working with PHP classes and reflection. Generate class names, namespaces, and short names, and inspect class metadata in a clean, test-friendly way—useful for tooling, libraries, and code generation. | 39 | 39 | 4 | 57K | 0 | 17.8 | 47.9 | MIT | 5 months ago | |
| ergebnis/composer-normalize | Composer plugin to normalize composer.json automatically: consistent key ordering, formatting, and sorting of dependencies. Avoid manual formatting debates and keep projects tidy across teams and CI with a simple dev requirement and allow-plugins setting. | 1,109 | 1,112 | 36 | 1M | 11 | 38.8 | 53.4 | MIT | 3 weeks ago | |
| ergebnis/http-method | — | 95 | 95 | 2 | 8K | 0 | 5.9 | — | MIT | 9 months ago | |
| ergebnis/json-pointer | RFC 6901 JSON Pointer abstraction for PHP. Create and convert reference tokens and pointers from plain strings, JSON string form, or URI fragment identifiers, with correct escaping and encoding. Install via Composer and use small, typed value objects. | 20 | 20 | 0 | 1M | 0 | 21.2 | 63.6 | MIT | 2 months ago | |
| ergebnis/php-cs-fixer-config | Factory-style PHP-CS-Fixer config for projects: choose a versioned ruleset (PHP 5.3–8.3), generate a consistent configuration, and keep coding standards aligned across repositories. Install via Composer and use with friendsofphp/php-cs-fixer. | 70 | 70 | 17 | 46K | 1 | 31.1 | 44.9 | MIT | 3 weeks ago | |
| ergebnis/phpunit-slow-test-detector | PHPUnit extension (Composer package and PHAR) that detects and reports slow tests during test runs. Configure a global maximum duration; when tests exceed it, the extension lists them with timings to help you spot and fix performance regressions. | 146 | 148 | 12 | 560K | 8 | 29.0 | 60.5 | MIT | 2 months ago | |
| localheinz/composer-normalize | Normalize your composer.json consistently. localheinz/composer-normalize sorts keys, formats lists, and enforces a stable structure to reduce diffs and keep projects tidy. Works well in CI and pre-commit hooks for repeatable results. | 1,109 | 1,110 | 36 | 3K | 11 | 28.8 | 4.0 | MIT | 3 weeks ago |
How can I help you explore Laravel packages today?