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.
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.
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 |
Coming from 4.x? See UPGRADE.md.
See CONTRIBUTING.md for development setup, testing, and the PR/release process.
