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
Php Code Style

Php Code Style Laravel Package

letsgoi/php-code-style

A PHP code style package from letsgoi that helps enforce consistent formatting and coding conventions across your projects, making it easy to keep code clean and uniform with shared style rules and tooling configuration.

Deep Wiki
Context7

letsgoi/php-code-style is a shared coding-standard package that keeps PHP and Laravel projects consistently formatted. It bundles a curated PHP-CS-Fixer ruleset (and a ready-to-use configuration) so teams can adopt the same style with minimal setup and no per-project rule tuning.

  • Opinionated, framework-friendly ruleset covering formatting, imports, and modern PHP syntax
  • Drop-in config files for quick integration into new or existing projects
  • Composer-based installation with sensible defaults out of the box
  • Easy to extend or override rules when your project needs exceptions
  • Encourages clean diffs and fewer style debates across teams
Frequently asked questions about Php Code Style
What is letsgoi/php-code-style used for?
It is a PHP package for enforcing consistent coding standards across Laravel and PHP projects. It provides configurable style rules so teams can keep code clean, readable, and maintainable. It also helps automate formatting checks and reduce time spent debating code style.
How do I install letsgoi/php-code-style in a Laravel project?
Install it with Composer, typically as a development dependency: composer require --dev letsgoi/php-code-style. After installation, publish or review any package configuration if the README instructs you to do so. Then run the package's style commands or script entries to check and format your code.
Which Laravel and PHP versions does letsgoi/php-code-style support?
The package targets Laravel and PHP projects, but exact version support is defined by its Composer constraints. Check the require and require-dev sections in the package's composer.json or Packagist listing before installing. That will confirm the minimum PHP version and compatible Laravel framework versions for your application.
How do I configure the coding style rules?
Configuration is handled through the package's configurable style rules, usually via a published config file or rule set in your project. Review the package README for the exact configuration file name and available options. You can then adjust rules to match your team's conventions rather than accepting defaults blindly.
Can I run letsgoi/php-code-style checks in CI/CD?
Yes, style enforcement packages are typically run as part of CI to catch formatting violations before merge. Add the package's check or dry-run command to your pipeline after Composer install. Keep formatting automated so pull requests fail fast on style regressions instead of relying on manual review.
Does letsgoi/php-code-style work with Laravel Pint or PHP-CS-Fixer?
The package is focused on enforcing consistent PHP and Laravel coding standards, and it may complement or wrap existing style tooling. Because integration details depend on the package version, check its Composer dependencies and README for Pint or PHP-CS-Fixer references. Avoid running overlapping formatters on the same files without agreeing on one source of truth.
How do I fix existing style violations in a large codebase?
Start by running the package's formatting command on a small directory or a limited set of files. Review the diff, commit the automated changes separately, and then expand scope gradually. This keeps style-only commits isolated from behavioral changes and makes code review easier.
Is letsgoi/php-code-style safe to run in production?
It is a development tool for checking and formatting source code, so it should normally be installed as a dev dependency and run in local or CI environments. Avoid running formatters directly against production code without version control and review. Treat generated style changes like any other code change and test them before deployment.
How can I test that the style rules are being applied?
Add a deliberately non-compliant file or small code snippet, run the style check, and confirm the package reports or fixes it. Then run the same check in CI to verify the rule set is enforced consistently. You can also compare output before and after configuration changes to ensure rules behave as expected.
What are alternatives to letsgoi/php-code-style?
Common alternatives include Laravel Pint, PHP_CodeSniffer, and PHP-CS-Fixer, depending on whether you want Laravel-focused defaults or broader PHP standard support. letsgoi/php-code-style is positioned as a configurable way to enforce team style rules in Laravel and PHP projects. Compare configuration effort, CI integration, and rule coverage before choosing.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo