palmtree/php-cs-fixer-config
Shared PHP CS Fixer configuration for Palmtree projects, providing an opinionated ruleset for consistent, modern PHP code style. Install via Composer and extend the base config to enforce project-wide formatting standards with minimal setup.
.php-cs-fixer.dist.php, copy one from a blog post, or adopt a framework preset (Laravel Pint, Symfony rulesets, PSR-12 via PHP_CodeSniffer). A maintained config package is a fourth option: borrow someone's opinionated baseline and fork the moment it stops fitting. That is a legitimate decision input even at zero stars.Consider it when:
Look elsewhere when:
.php-cs-fixer.dist.php (or Laravel Pint's zero-config default) gets you 95% of the value with none of the dependency surface.Adoption guardrails regardless: pin the exact version, commit a lockfile, document the override path in-repo, and assign a named owner. Budget one engineer-half-day per year to track upstream or take the fork.
To executives (one paragraph): This is a small, free, MIT-licensed configuration package that standardizes how our PHP code is formatted. It isn't a product feature — it's low-cost engineering hygiene that reduces code review back-and-forth, speeds up onboarding, and makes our quality gates consistent across services. The risk profile is unusually favorable: it's a thin config file, not a runtime dependency, so it never ships to customers, cannot break production, and can be replaced or forked internally in under a day if it's ever abandoned. The main caveat to acknowledge is that it has no external adoption — so we should treat it as an internal standard we own, not a third-party product we trust. Recommendation: pilot it on one or two repositories, measure review cycle time and onboarding friction, then decide on org-wide rollout.
To engineering (the actual ask): We're proposing a shared PHP CS Fixer ruleset as a single pinned dev dependency. Benefits are concrete: one source of truth for style, changes to standards surface as reviewable diffs, and CI enforcement becomes a one-line config change rather than a per-repo argument. Two honest caveats. First, the package has zero stars and zero dependents — it's unvetted, so we should read the ruleset before adopting it and be prepared to fork it; the license permits that and the surface area is tiny. Second, if you're already on Pint or have a well-loved local config, the case for switching is weak — say so and we'll drop it. If we proceed, we pin the version, name an owner, and treat blocking-vs-advisory CI enforcement as a separate, reversible decision.
The measurable bet: fewer style-related PR comments, shorter time-to-first-merged-PR for new hires, and a consistent CI gate across repos. If those numbers don't move in a quarter, we drop the dependency at near-zero cost.
How can I help you explore Laravel packages today?