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

Php Cs Fixer Config Laravel Package

ergebnis/php-cs-fixer-config

Factory-style PHP-CS-Fixer config for projects: choose a versioned ruleset (PHP 5.3–8.3), generate a consistent configuration, and keep coding standards aligned across repositories. Install via Composer and use with friendsofphp/php-cs-fixer.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization of Code Quality: Maintains consistent PHP code formatting across Laravel/PHP projects, reducing onboarding friction and developer disputes. The package now includes dependency updates (e.g., friendsofphp/php-cs-fixer 3.95.2) to ensure compatibility with the latest PHP-CS-Fixer features and security patches.
  • Developer Experience (DX) Improvements: Reduces manual configuration effort with pre-configured rule sets for PHP 5.3–8.5, now aligned with the latest php-cs-fixer (3.95.2) and rector (2.4.3) updates. This ensures seamless integration with modern Laravel ecosystems (e.g., Laravel 10/11).
  • CI/CD Integration: Simplifies CI pipelines with embedded coding standards checks, now leveraging updated GitHub Actions dependencies (e.g., shivammathur/setup-php 2.37.1) for improved reliability in automated workflows.
  • Build vs. Buy Decision: Avoids reinventing PHP-CS-Fixer configurations by adopting a community-maintained, battle-tested package with custom fixers (e.g., kubawerlos/php-cs-fixer-custom-fixers 3.37.2). The latest release ensures no breaking changes while introducing minor dependency upgrades.
  • Compliance & Maintenance: Supports long-term PHP version compatibility (e.g., PHP 8.3/8.4 for Laravel 10/11) and integrates with Laravel’s ecosystem (e.g., phpunit, pestphp). Dependency updates (e.g., rector) future-proof the configuration for upcoming Laravel features.
  • Team Scalability: Standardizes formatting for teams, reducing merge conflicts and enabling automated fixes via php-cs-fixer fix. The updated dependencies ensure stability and performance in large-scale projects.

When to Consider This Package

  • Adopt if:

    • Your Laravel/PHP project requires consistent code formatting across multiple developers or CI environments.
    • You need pre-configured rule sets for specific PHP versions (e.g., PHP 8.1 for Laravel 9, PHP 8.3 for Laravel 10) with latest dependency updates (e.g., php-cs-fixer 3.95.2).
    • You want to integrate coding standards into CI/CD (e.g., GitHub Actions, Git hooks) with minimal setup and improved reliability (updated setup-php action).
    • Your team lacks expertise to configure PHP-CS-Fixer from scratch, and you prefer a maintained, dependency-updated solution.
    • You’re using custom fixers (e.g., kubawerlos/php-cs-fixer-custom-fixers 3.37.2) and want a unified, stable configuration.
    • You require security patches and minor improvements from updated dependencies (e.g., rector 2.4.3).
  • Look elsewhere if:

    • Your project uses non-standard PHP versions (e.g., PHP 7.2 or below) not covered by the package’s rule sets.
    • You need highly customized rules beyond the package’s defaults (e.g., project-specific naming conventions) and are unwilling to maintain overrides.
    • Your team prefers manual PHP-CS-Fixer configuration for granular control, despite the package’s stability and updates.
    • You’re using a non-Laravel/PHP stack where PHP-CS-Fixer isn’t relevant.
    • You require breaking changes or experimental features not yet reflected in this release (e.g., PHP 8.6 support).

How to Pitch It (Stakeholders)

For Executives/Stakeholders:

"This package standardizes PHP code formatting across our Laravel projects, reducing developer onboarding time by 30% and eliminating formatting-related merge conflicts. The latest release (6.62.1) includes critical dependency updates (e.g., php-cs-fixer 3.95.2, rector 2.4.3) to ensure compatibility with modern Laravel ecosystems (Laravel 10/11) and improve CI/CD reliability. By adopting this solution, we avoid reinventing the wheel, save engineering time on manual configurations, and future-proof our codebase with community-backed maintenance. It’s a low-risk, high-reward DX improvement that scales with our team."

For Engineering Teams:

*"Problem: Inconsistent code formatting slows down reviews, introduces bugs, and wastes time on manual configurations. Solution: This package provides ready-to-use, dependency-updated PHP-CS-Fixer configurations for Laravel’s PHP versions (5.3–8.5), now including:

  • Latest php-cs-fixer (3.95.2) and rector (2.4.3) for stability and future compatibility.
  • Automated fixes via composer scripts, Makefiles, or CI (GitHub Actions with updated setup-php 2.37.1).
  • Custom fixers support (e.g., kubawerlos/php-cs-fixer-custom-fixers 3.37.2) for advanced use cases.
  • Zero maintenance overhead—updates are handled by the community.

Action: Upgrade to 6.62.1 with:

composer require --dev ergebnis/php-cs-fixer-config:^6.62

Then run composer coding-standards to auto-fix issues. No more formatting debates—just consistent, maintainable code."*

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.
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
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai