Weave Code
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

Ecs Laravel Package

craftcms/ecs

Easy Coding Standard (ECS) config presets for Craft CMS projects and plugins. PSR-12 aligned with a few Craft-specific tweaks. Install via Composer, add an ecs.php selecting Craft 3 or 4 set, then run ecs check (optionally --fix).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Experience (DX) & Consistency: Enables standardized code quality across Craft CMS projects, reducing onboarding friction and enforcing best practices (e.g., PSR-12, Craft-specific conventions). Aligns with roadmaps prioritizing maintainability and scalability.
  • Build vs. Buy: Avoids reinventing ECS configurations from scratch, saving engineering time. Ideal for teams already using Craft CMS or PHP-based projects with strict coding standards.
  • Use Cases:
    • New Craft CMS projects requiring out-of-the-box compliance.
    • Legacy projects needing gradual codebase cleanup.
    • Teams adopting Craft CMS from other CMS platforms (e.g., WordPress) to enforce consistency.
    • CI/CD pipelines where automated code quality checks are critical.

When to Consider This Package

  • Adopt if:

    • Your team uses Craft CMS or PHP projects with PSR-12/PSR-1 needs.
    • You lack in-house expertise to configure PHP_CodeSniffer or ECS manually.
    • Your roadmap includes developer productivity or codebase health initiatives.
    • You’re integrating Craft CMS with GitHub Actions/GitLab CI for automated linting.
  • Look elsewhere if:

    • Your project uses non-PHP stacks (e.g., Node.js, Python).
    • You need custom ECS rules beyond Craft CMS defaults (e.g., framework-agnostic standards).
    • Your team prefers manual code reviews over automated tooling.
    • You’re already using a dedicated static analysis tool (e.g., Psalm, PHPStan) with overlapping goals.

How to Pitch It (Stakeholders)

For Executives: "This package lets us enforce consistent, high-quality code across Craft CMS projects with minimal effort—think of it as ‘auto-pilot’ for developer best practices. It integrates seamlessly with our CI/CD pipelines, reducing technical debt and speeding up onboarding. For a one-time setup, we gain long-term savings in maintenance and developer productivity."

For Engineering: "CraftCMS/ECS gives us pre-configured PHP_CodeSniffer and ECS rules tailored for Craft CMS, so we don’t waste time tweaking standards. It’s lightweight, MIT-licensed, and plays well with tools like GitHub Actions. Perfect for teams that want to ship faster without sacrificing quality—just add it to your composer.json and let it handle the rest."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests