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

Phpcsfixer Configs Php Laravel Package

drupol/phpcsfixer-configs-php

Ready-made PHP-CS-Fixer config objects for common standards and PHP versions (PSR-12, PHP 5.6–7.3). Implements ConfigInterface and supports combining rules via withRulesFrom() for easy reuse across projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization of Code Quality: Enables consistent PHP coding standards across Laravel/PHP projects by providing pre-configured PHP-CS-Fixer rulesets (PSR12, PHP 5.6–8.2). Aligns with engineering best practices for maintainability and onboarding.
  • Build vs. Buy: Buy—eliminates the need to manually configure PHP-CS-Fixer rules, saving engineering time. Avoids reinventing the wheel for common standards.
  • CI/CD Integration: Supports automated code quality checks in pipelines (e.g., GitHub Actions, GitLab CI), reducing manual reviews and enforcing standards pre-merge.
  • Team Scalability: Reduces friction for new developers by providing clear, documented configurations (PSR12, PHP version-specific). Critical for teams adopting Laravel or migrating legacy PHP codebases.
  • Roadmap for Laravel Projects:
    • New Projects: Default to PSR12 or PHP version-specific configs (e.g., Php82 for Laravel 10+).
    • Legacy Migration: Use Php56 or Php7 configs to incrementally modernize codebases.
    • Customization: Extend base configs via withRulesFrom() for project-specific needs (e.g., Laravel’s return type hints).

When to Consider This Package

  • Adopt When:

    • Your team lacks a standardized PHP coding style guide.
    • You’re starting a new Laravel project or migrating from legacy PHP (5.6+).
    • Engineering velocity is hindered by inconsistent code formatting.
    • CI/CD pipelines need automated code quality gates (e.g., fail builds on style violations).
    • You want to align with PSR-12 or PHP version-specific best practices without manual configuration.
  • Look Elsewhere If:

    • Your project requires highly custom PHP-CS-Fixer rules beyond PSR12/PHP version defaults (e.g., framework-specific quirks like Symfony or Drupal).
    • You’re using PHP < 7.4 (package requires PHP ≥ 7.4).
    • Your team prefers manual rule configuration or existing in-house standards.
    • You need real-time IDE integration (consider PHP-CS-Fixer’s native configs + IDE plugins like PHPStorm’s built-in fixer).
    • The package’s lack of dependents (0) raises concerns about long-term maintenance (mitigate by vetting the maintainer’s activity).

How to Pitch It (Stakeholders)

For Executives:

"This package lets us enforce consistent PHP code quality across our Laravel projects with zero manual effort. By adopting pre-configured PHP-CS-Fixer rules (PSR12, PHP 5.6–8.2), we’ll reduce bugs from style inconsistencies, speed up onboarding for new devs, and automate code reviews in CI/CD. It’s a low-risk, high-reward way to standardize our codebase—saving engineering time while improving maintainability. The cost? Just a one-line Composer install in dev dependencies."

For Engineering Teams:

"This gives us drop-in PHP-CS-Fixer configs for Laravel projects, so we don’t waste time tweaking rules. Need PSR12 compliance? Use PSR12. Migrating legacy PHP 5.6 code? Use Php56. The configs are battle-tested (used in Drupal 11) and extendable—just call withRulesFrom() to override defaults. It integrates seamlessly with our CI (e.g., fail builds on style violations) and works with Laravel’s ecosystem. Let’s standardize our codebase without reinventing the wheel."

For Developers:

"No more arguing about tabs vs. spaces or brace styles—this package gives us ready-to-use PHP-CS-Fixer configs for Laravel. Just install it (composer require --dev drupol/phpcsfixer-configs-php), pick a preset (PSR12, Php82), and run php-cs-fixer fix. It’s lightweight, well-documented, and even includes tests. Perfect for keeping our code clean without the hassle."

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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours