ibexa/code-style
Ibexa coding standards bundle: PHP-CS-Fixer internal config factory, rulesets, CI/IDE helpers, hooks and contribution templates. Install as a dev dependency and add a .php-cs-fixer.php to apply Ibexa style, with optional parallel runs.
php-cs-fixer, Git hooks) without disrupting core architecture.InternalConfigFactory enables TPMs to extend Ibexa’s ruleset with Laravel-specific conventions (e.g., PSR-12 overrides, Blade template rules) or override conflicting rules (e.g., Ibexa DXP-specific directives). This flexibility ensures compatibility with Laravel’s ecosystem while maintaining Ibexa’s standards..php-cs-fixer.php configuration file and a Composer dependency (ibexa/code-style), making integration trivial. No database migrations, service providers, or route changes are needed.phpunit.xml or standalone workflows, enabling pre-commit checks or post-merge validations..php-cs-fixer.dist.php, enabling real-time linting and reducing manual review overhead.$factory->withRules() to override or supplement Ibexa’s ruleset, ensuring alignment with Laravel’s conventions.~X.Y.Z Composer constraint (e.g., ~2.2.0) to limit disruption from patch updates. Monitor minor releases for breaking changes.v3.95.1), which may lag behind the latest features or bug fixes. Mitigation: Evaluate whether the locked version meets current needs or if customization is required.runInParallel()) be enabled to reduce CI/CD runtime for large codebases?app/, src/, tests/)..php-cs-fixer.dist.php or custom rules to identify conflicts with Ibexa’s standards.composer require --dev ibexa/code-style
vendor/bin/php-cs-fixer fix --dry-run --diff
composer require --dev ibexa/code-style:~2.2.0
.php-cs-fixer.php using Ibexa’s factory (with or without custom rules).$factory->withRules([
'@PSR12' => true, // Merge with PSR-12 if needed
'ordered_imports' => false, // Disable if conflicting
]);
Finder:
$config->setFinder(
Finder::create()
->in(__DIR__ . '/resources/views')
->name('*.blade.php')
);
main and update CI/CD pipelines to enforce the new ruleset.php-cs-fixer locally and interpreting output.v3.95.1), which may require customization if newer features are needed..php-cs-fixer.php.~X.Y.Z Composer constraints to limit updates to patch releases.$factory->withRules())..php-cs-fixer.dist.php).How can I help you explore Laravel packages today?