dragon-code/codestyler
Codestyler is a Composer dev tool that automatically fixes coding style standards in Laravel and PHP projects. It copies preset pint.json and .editorconfig files via the vendor/bin/codestyle command, supporting PHP 8.2–8.5 presets plus Rector and npm/Biome configuration.
pint.json presets (PHP 8.2–8.5), a rector.php preset (laravel or default), .editorconfig, and biome.json, then standardizes the composer.json scripts that invoke them. For a PM, that is a repeatable policy lever across a portfolio of Laravel services rather than a style argument in every pull request.post-update-cmd block. This directly reduces ramp-up cost for new hires and contractors and shortens the "make the repo conform" phase of migrations and acquisitions.TheDragonCode/.github/.github/workflows/code-style.yml) toggling php and node, which makes "code style is enforced in CI" a config change rather than a platform project. That supports incremental rollout: publish configs first, add advisory CI, then make the check blocking.composer normalize and JSON/JS formatting reduce noise in reviews and merge conflicts, which shows up as a measurable (if modest) cycle-time improvement. The 6.8.1 release reinforces this: the PHP migration rule sets behind each preset were trimmed of obsolete rules for older PHP versions, so upgrades should produce smaller, more targeted Rector diffs instead of re-touching legacy migrations.composer update.Adopt it when:
pint/Rector ruleset — so treat preset diffs as reviewable behavior changes, not cosmetic noise.pint.json, .editorconfig, biome.json, and rector.php are plain files in your repo.Look elsewhere or build in-house when:
composer update must remain side-effect-free — note the design copies and overwrites .editorconfig and related files on post-update-cmd, which can silently clobber local customization.rector.php yourself.Risk posture: low blast radius (dev-only, files copied locally, MIT, easily removed) offset by low bus factor and mutable preset contents. Mitigation is to vendor the generated configs, pin the version, and review preset changes at upgrade time rather than auto-accepting them — 6.8.1 is a good example of a patch release that quietly changes what Rector will rewrite on your next run.
For executives: This is a low-cost, low-risk developer-productivity lever. It standardizes code formatting and static fixes across our PHP/Laravel repositories by publishing a shared set of configuration files, so engineers stop re-litigating style and spend review time on logic. Cost is one dev-only dependency under a permissive MIT license; impact is faster onboarding, cleaner diffs, and a straightforward path to enforcing style in CI. Because the configuration is copied into our repos as plain files, we are not locked in — if the package stalls, we keep the files and drop the dependency.
For engineering: Add dragon-code/codestyler as a dev dependency, wire a few post-update-cmd calls to publish pint.json (PHP 8.2–8.5 presets), rector.php (laravel preset), .editorconfig, and biome.json, and expose a single composer style entry point running Rector and Pint. Frontend formatting uses Biome via npm. A reusable GitHub Actions workflow enables enforcement. Watch three things: the publish step overwrites existing config files (commit and review the diff); the Rector rulesets change between releases — 6.8.1 dropped legacy PHP migration rules across all four PHP presets, so a routine dependency bump can change the scope of automatic refactors; and the package is maintained by a single author with minimal adoption. Pin the version, keep the generated configs in version control, review preset diffs on upgrade rather than auto-accepting them, and be prepared to own the files. Recommended rollout: pilot on one service, compare the resulting diff volume, then apply to new repos by default and retrofit existing ones during planned upgrade work.
How can I help you explore Laravel packages today?