typo3/coding-standards
TYPO3 Coding Standards provides ready-to-use PHP_CodeSniffer rulesets and tooling to enforce TYPO3 and PSR coding style. Helps keep extensions and projects consistent via Composer, CI integration, and automated linting/fixing recommendations.
Architecture fit: The package remains a well-aligned PHP_CodeSniffer ruleset for TYPO3 projects, now explicitly synchronized with the latest TYPO3 Core version (v0.8.0). Its integration into Laravel/PHP stacks is still seamless, particularly for projects leveraging TYPO3 extensions or Symfony components (now supporting v7). The package extends PHPCS without infrastructure overhead, making it ideal for enforcing TYPO3-specific coding standards alongside PSR-12 and Laravel conventions.
Integration feasibility: High, with improved compatibility. Installation via Composer (composer require typo3/coding-standards) remains straightforward, and CI/CD integration (e.g., GitHub Actions) is streamlined by updated workflows. The package now explicitly supports PHP 8.1+ and PHP-CS-Fixer versions aligned with the PER standard, reducing version-specific conflicts. The addition of a Code of Conduct and branch synchronization with TYPO3 Core further signals maturity.
Technical risk: Low to Moderate (previously Moderate).
system/settings.php, which may not apply universally).Key questions:
laravel-shift/php-pact)?Stack fit: Excellent for Laravel projects using:
typo3/cms or helhum/typo3-console).Migration path:
composer require typo3/coding-standards:^0.8.0.phpcs.xml to reference the ruleset:
<config defaultStandard="TYPO3">
<arg name="extensions" value="php"/>
</config>
./vendor/bin/phpcs --standard=TYPO3 and auto-fix with phpcbf.typo3/coding-standards, then merge fixes incrementally.TYPO3 standard and PHP 8.1+ (see PR #122 for PHP 8.3 support).Compatibility:
Sequencing:
phpcs against the codebase to identify violations.phpcbf for auto-fixes (e.g., PR #126’s cache fixes).phpcs.xml if needed (e.g., for Laravel’s facades or Blade templates).- name: Run TYPO3 Coding Standards
run: ./vendor/bin/phpcs --standard=TYPO3 --warning-severity=0 src/
Maintenance:
Support:
Scaling:
--parallel flag for monorepos.Failure modes:
phpcs.xml.replace in composer.json or pin versions.system/settings.php) may not apply to Laravel-only projects.
phpcs.xml to exclude irrelevant rules.Ramp-up:
phpcbf).// @codingStandardsIgnoreStart) for developers.How can I help you explore Laravel packages today?