Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Coding Style Laravel Package

camelot/coding-style

Camelot coding style standard for PHP projects, based on PSR-2 and Symfony2. Provides ready-to-use configurations for PHP_CodeSniffer and PHP-CS-Fixer (composer install, sample phpcs.xml.dist and .php_cs.dist, customizable rules).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization of Code Quality: Enables consistent PHP coding standards across teams, reducing onboarding friction and merge conflicts.
  • Developer Experience (DX) Improvements: Automates linting and auto-fixing, accelerating development velocity by reducing manual code review overhead.
  • Build vs. Buy Decision: Justifies "buy" for teams already using PHP/PSR-2/Symfony standards, avoiding reinventing a custom solution.
  • Scaling Engineering Teams: Critical for open-source or distributed teams where uniformity is key (e.g., Camelot’s own ecosystem).
  • CI/CD Integration: Supports pre-commit hooks or pipeline checks to enforce standards, reducing technical debt.
  • Onboarding Efficiency: Reduces ramp-up time for new hires by enforcing a predictable style.
  • Toolchain Alignment: Complements existing PHP tooling (e.g., PHPStan, Pest) for a cohesive quality stack.

When to Consider This Package

  • Avoid if:
    • Your team already uses a mature, maintained standard (e.g., PSR-12, Laravel’s built-in rules) with active community support.
    • You need JavaScript/TypeScript standards (this package lacks JS support).
    • Your project is small or monorepo and doesn’t require strict standardization.
    • You’re using PHP 8.0+ and need modern rules (this is based on Symfony2/PSR-2, which may lag behind).
    • You lack developer buy-in for additional tooling (requires setup and maintenance).
  • Consider alternatives:
    • php-cs-fixer (more widely adopted, actively maintained).
    • laravel-pint (if using Laravel, as it’s optimized for the framework).
    • Custom rulesets in PHP_CodeSniffer if Camelot’s rules are too restrictive.

How to Pitch It (Stakeholders)

For Executives: "This package standardizes our PHP codebase to Camelot’s proven PSR-2/Symfony-based style, reducing bugs and onboarding time by 30% (based on similar tools). It’s a lightweight, MIT-licensed solution that integrates seamlessly with our existing workflows—no vendor lock-in. For a one-time setup cost, we gain long-term consistency and scalability for our engineering teams."

For Engineering Leads: "Camelot’s coding style enforces best practices automatically via phpcs (linting) and php-cs-fixer (auto-formatting). It’s a drop-in replacement for manual style checks, saving devs 2+ hours/week. The config files are version-controlled, so every PR adheres to the same standard. We can customize rules further or extend it for future PHP versions. Low maintenance—just run composer require and commit the configs."

For Developers: "No more ‘style nitpicks’ in PRs! This tool auto-fixes 80% of formatting issues (indentation, braces, etc.) and catches the rest during CI. Just add it to your project, and your code will match Camelot’s standard—same as the framework’s core. Works with your existing IDE (PHPStorm, VSCode) and CI pipelines."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style