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

Code Style Php Laravel Package

chiiya/code-style-php

Reusable code style configs for PHP 8.1+ projects, combining PHP-CS-Fixer, EasyCodingStandard (ECS), and Rector. Install via Composer and import the provided rule sets into your tool config files to standardize formatting and refactors.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization of Code Quality: Enables consistent PHP code style across teams, reducing cognitive load and onboarding friction for new developers.
  • Developer Experience (DX) Improvements: Automates linting and formatting, allowing engineers to focus on feature development rather than style debates.
  • Build vs. Buy Decision: Avoids reinventing custom linting rules by leveraging pre-configured, battle-tested rules from PHP-CS-Fixer, ECS, and Rector.
  • Scaling Engineering Teams: Ensures uniformity as the team grows, particularly useful for open-source contributions or multi-team projects.
  • CI/CD Integration: Supports automated pre-commit hooks (via GrumPHP) or CI pipelines to enforce standards before code reaches production.
  • Roadmap for PHP Modernization: Aligns with PHP 8.2+ compatibility, enabling teams to adopt newer PHP features while maintaining clean code.

When to Consider This Package

  • Adopt if:

    • Your team lacks standardized PHP linting rules or relies on inconsistent configurations.
    • You’re using PHP-CS-Fixer, ECS, or Rector and want pre-configured, opinionated rules (e.g., Symfony, Laravel, or custom PHP projects).
    • You prioritize developer velocity and want to reduce manual code review time spent on style nitpicks.
    • Your project requires open-source compliance (MIT license) or contributions from external developers.
    • You’re migrating to PHP 8.2+ and need modern tooling support.
  • Look Elsewhere if:

    • Your team has strong existing linting preferences (e.g., custom PSR-12 deviations or legacy tooling like PHPCS).
    • You’re using non-PHP languages or a monorepo with mixed stacks (e.g., JavaScript/TypeScript).
    • Your project is highly specialized (e.g., WordPress plugins with unique coding standards).
    • You need enterprise-grade support (this package lacks stars/dependents; consider paid alternatives like PHPStan or Psalm for critical projects).
    • Your CI/CD pipeline already enforces strict standards via custom scripts or third-party services (e.g., Codacy, SonarQube).

How to Pitch It (Stakeholders)

For Executives/Engineering Leaders:

*"This package standardizes our PHP code quality with minimal effort—think of it as ‘Prettier for PHP.’ By adopting chiiya/code-style-php, we’ll:

  • Reduce merge conflicts from style differences (saving dev time).
  • Improve onboarding with consistent, automated formatting.
  • Future-proof our codebase with PHP 8.2+ support and modern tooling (PHP-CS-Fixer, Rector).
  • Leverage open-source without reinventing the wheel—maintained by the community, not our team.

It’s a low-risk, high-reward move: a 10-minute setup yields months of developer productivity gains. For teams already using Laravel, we can pair this with laravel-code-style for deeper integration."*

For Engineers:

*"This gives us out-of-the-box PHP linting that handles:

  • Formatting (PHP-CS-Fixer): Aligns with PSR-12 but with sensible defaults (e.g., no setup() method false positives).
  • Refactoring (Rector): Auto-updates legacy code (e.g., InlineArrayReturnAssignRector).
  • Static Analysis (ECS): Catches anti-patterns early.

How to start:

  1. Run composer require chiiya/code-style-php --dev.
  2. Import the configs into your .php-cs-fixer.dist.php, ecs.php, and rector.php.
  3. Add to CI (e.g., GitHub Actions) or local pre-commit hooks (GrumPHP).

Why now? It’s lightweight, actively maintained (latest update: 1.10.0), and avoids the tedium of custom rule tuning. Let’s pilot it in [Project X] and measure dev time saved."*

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky