unleashedtech/php-coding-standard
Opinionated PHP coding standard by Unleashed Tech, built on PHP-CS-Fixer rules and presets to keep code style consistent across projects. Easy to install via Composer and integrate into CI for automated linting and formatting.
composer require --dev unleashedtech/php-coding-standard
composer require --dev squizlabs/php_codesniffer
phpcs.xml in your project root with:
<?xml version="1.0"?>
<ruleset name="UnleashedTechStandard">
<arg value="p"/>
<file>src/</file>
<file>tests/</file>
<rule ref="vendor/unleashedtech/php-coding-standard/ruleset.xml"/>
</ruleset>
./vendor/bin/phpcs
<rule ref="..."/>../vendor/bin/phpcs . as a step in your GitHub Actions, GitLab CI, or similar—fail fast on non-compliant code.ruleset.xml; developers get real-time feedback.@codingStandardsIgnoreStart/End or <exclude-pattern> in phpcs.xml.phpcs.xml to tweak rules (e.g., add customSniff paths or relax specific sniffs) while keeping the baseline intact.^3.7 recommended). Check composer.json for required PHP version.ruleset.xml in the vendor directory.phpcs.xml or phpcs.xml.dist; ensure phpcs.xml is committed, or add a .phpcs.xml alias.-s flag (phpcs -s path/to/file.php) to see which sniff triggered a violation. Use --standard=VendorName when testing custom configs.phpcs.ini, you can create your own sniffs and add them to your project’s phpcs.xml after referencing this standard.How can I help you explore Laravel packages today?