graze/standards
Graze Coding Standards: a cross-language style guide for the Graze tech team. Covers general formatting rules, Git conventions, and standards for PHP, HTML, JavaScript, Python, SQL, CSS/Less, Markdown, and Go, plus open source and environment guidance.
Pros:
php-cs-fixer or laravel-pint).Graze.ControlStructures.NegationNoSpaces) and can be layered with existing PHPCS rulesets (e.g., PSR-12, Laravel-specific rules).Cons:
pint for Laravel).PHPCS Integration:
composer.json as a dev dependency and configure PHPCS to use the Graze ruleset:
"require-dev": {
"graze/standards": "^2.0"
}
.phpcs.xml file to include Graze sniffs alongside PSR-12:
<config defaultStandard="PSR12">
<arg name="extensions" value="php"/>
<arg name="tab-width" value="4"/>
<arg name="standard" value="Graze"/>
</config>
pre-commit) or CI (e.g., GitHub Actions) to block violations.Tooling Conflicts:
pint/php-cs-fixer: Graze’s PHPCS rules may overlap with auto-fix tools. Prioritize PHPCS for enforcement and use pint for Laravel-specific formatting (e.g., pint --preset=laravel).AbstractClassNaming or NegationNoSpaces may generate noisy warnings in legacy codebases, requiring manual triage.phpcs --cache or php-parallel-lint).// @codingStandardsIgnore annotation).pint, ESLint, Prettier)?make docs-test for local documentation previews?graze/standards to composer.json and configure PHPCS.phpcs CLI).pre-commit to block violations).fail_on_warning: true).php-cs-fixer with PHPCS for Graze-compliant rules).laravel-pint or pint: Decide whether to use PHPCS for enforcement or pint for auto-fixing.squizlabs/php_codesniffer action.php-cs-fixer).How can I help you explore Laravel packages today?