esono/code-quality
There is no license information available for the latest version (1.0.0) of this package.
Code quality tools
1.0.0
2026-01-20 12:52 UTC
Requires
- friendsofphp/php-cs-fixer: v3.51.0
- vincentlanglet/twig-cs-fixer: 3.6.0
- phpstan/phpstan: 1.12.7
- jetbrains/phpstorm-attributes: 1.1
README
This repo contains the global code-quality tools and default configs for all projects. At the moment it only contains the default php-cs-fixer + config and a basic phpstan configuration.
Usage
To avoid conflicts install this as a separate composer project inside the tools folder of your project.
mkdir -p tools/code-qualityecho '{"name":"esono/tools","repositories":[{"type":"path","url":"../../../../code-quality","options":{"symlink":false}}],"require-dev":{"esono/code-quality":"dev-main"}}' > tools/code-quality/composer.jsoncomposer install --working-dir=tools/code-quality
Gitlab-CI Yaml
Für CI:
mkdir -p tools/code-quality
echo '{"name":"esono/tools","repositories":[{"type":"path","url":"../../../../code-quality","options":{"symlink":false}}],"require-dev":{"esono/code-quality":"dev-main"}}' > tools/code-quality/composer.json
composer install --working-dir=tools/code-quality
tools/code-quality/vendor/bin/php-cs-fixer check --config tools/code-quality/vendor/esono/code-quality/csfixer.php