kununu / code-tools
Code Tools
v5.1.0
2026-09-15 09:10 UTC
Requires
- php: >=8.4
- composer-plugin-api: ^2.0
- ext-mbstring: *
- ext-simplexml: *
- ext-tokenizer: *
- composer/composer: ^2.10
- friendsofphp/php-cs-fixer: ^3.95
- jetbrains/phpstorm-attributes: ^1.3
- phpat/phpat: ^0.11.4
- phpstan/phpstan: ^2.2
- phpstan/phpstan-phpunit: ^2.0
- psalm/plugin-phpunit: ^0.19
- psalm/plugin-symfony: ^5.3
- rector/rector: ^2.6
- squizlabs/php_codesniffer: ^3.13
- symfony/console: ^6.4 || ^7.4
- symfony/process: ^6.4 || ^7.4
- symfony/yaml: ^6.4 || ^7.4
- vimeo/psalm: ^6.17
Requires (Dev)
Suggests
None
Provides
None
Conflicts
- symfony/config: <6.4 || >=8.0
- symfony/dependency-injection: <6.4 || >=8.0
- symfony/error-handler: <6.4 || >=8.0
- symfony/event-dispatcher: <6.4 || >=8.0
- symfony/expression-language: <6.4 || >=8.0
- symfony/filesystem: <6.4 || >=8.0
- symfony/finder: <6.4 || >=8.0
- symfony/framework-bundle: <6.4 || >=8.0
- symfony/http-foundation: <6.4 || >=8.0
- symfony/http-kernel: <6.4 || >=8.0
- symfony/options-resolver: <6.4 || >=8.0
- symfony/routing: <6.4 || >=8.0
- symfony/stopwatch: <6.4 || >=8.0
- symfony/string: <6.4 || >=8.0
- symfony/symfony: *
- symfony/var-dumper: <6.4 || >=8.0
- symfony/var-exporter: <6.4 || >=8.0
Replaces
None
README
kununu Code Tools
Shared development tooling for kununu PHP projects. It centralizes the static-analysis and code-style configuration our repositories use, and ships the helper executables our repositories share.
Installation
composer require --dev kununu/code-tools --no-plugins
--no-plugins keeps composer plugins from running during installation, which would otherwise generate unwanted configuration files, particularly in projects using symfony/flex.
Tools
Every tool works out of the box. Use bin/code-tools to publish a tool's configuration template into your project when you need to customise it.
| Tool | Purpose |
|---|---|
.editorconfig |
Consistent editor and IDE settings across the team |
| PHP-CS-Fixer | Formats and fixes code against the kununu coding standard |
| PHP_CodeSniffer | Reports and fixes coding-standard violations, including custom kununu sniffs |
| PHPStan | Static analysis |
| Psalm | Static analysis with type inference |
| Rector | Automated refactoring and PHP version upgrades |
| Architecture Sniffer | Architecture and dependency rules, powered by PHPAT |
bin/code-tools |
Publishes the configuration templates above into your project |
bin/coverage-check |
Checks the total line coverage of a Cobertura report against a minimum |
bin/php-in-k8s |
Runs PHP commands inside a local Kubernetes pod |
bin/print-section |
Prints a section header, to separate the steps of a multi-tool script |
Upgrading
Coming from 4.x? See UPGRADE.md.
Contributing
See CONTRIBUTING.md for development setup, testing, and the PR/release process.
