PHPackages                             kununu/code-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kununu/code-tools

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

kununu/code-tools
=================

Code Tools

v4.0.0(3mo ago)01.9k—1.2%1[2 PRs](https://github.com/kununu/code-tools/pulls)4MITPHPPHP &gt;=8.4CI passing

Since Aug 27Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/kununu/code-tools)[ Packagist](https://packagist.org/packages/kununu/code-tools)[ RSS](/packages/kununu-code-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (24)Used By (4)

[![Continuous Integration](https://github.com/kununu/code-tools/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/kununu/code-tools/actions/workflows/continuous-integration.yml/badge.svg)[![Quality Gate Status](https://camo.githubusercontent.com/b0f2ba65753687810363204c10e689da86508ebaaea29ebcd2830fa24b442262/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6b756e756e755f636f64652d746f6f6c73266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=kununu_code-tools)

 [![Brancher](/docs/code-tools-logo.png)](/docs/code-tools-logo.png)

code-tools
==========

[](#code-tools)

- This repository contains code tools you can use in your project.
- It is a collection of tools and scripts that help us to maintain our codebase.

Tools
-----

[](#tools)

### `.editorconfig`

[](#editorconfig)

- EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.
- Learn more about `.editorconfig` at official page [here](https://editorconfig.org/).

### `PHP-CS-Fixer`

[](#php-cs-fixer)

- This project uses **PHP-CS-Fixer** to automatically format and fix PHP code according to defined coding standards. It helps maintain clean, consistent, and readable code across the codebase.

### `PHP_CodeSniffer`

[](#php_codesniffer)

- PHP\_CodeSniffer is a set of two PHP scripts; the main `phpcs` script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second `phpcbf` script to automatically correct coding standard violations. PHP\_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
- Though the usage of this tool is not mandatory, it is highly recommended to use it to ensure the quality of the codebase.
- Learn more about PHP\_CodeSniffer at official page [here](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki).

### `Rector`

[](#rector)

- Rector is a tool that automatically upgrades and refactors your PHP code. It is a tool that helps you to keep your code up-to-date and clean.
- Learn more about Rector at official page [here](https://getrector.com/documentation).

### `bin/code-tools`

[](#bincode-tools)

- Though each tool can be used "out-of-the-box", this is a helper script that allows you to copy configuration files of each, or all, tools to your project so you can customize them.

### `bin/php-in-k8s`

[](#binphp-in-k8s)

- This is a helper script that allows you to run PHP commands inside a local Kubernetes pod without having to connect to it via a terminal manually.

### `Architecture Sniffer & PHPAT`

[](#architecture-sniffer--phpat)

- **Architecture Sniffer** enforces architectural and dependency rules in your PHP codebase, helping you maintain a clean and consistent architecture.
- It is powered by [PHPAT](https://github.com/carlosas/phpat), a static analysis tool for PHP architecture testing.
- Architecture Sniffer uses a YAML configuration file (`architecture.yaml`) where you define your architectural groups and their allowed dependencies. Each group is a key under the `architecture` root, e.g.:

    ```
    architecture:
      $controllers:
        includes:
          - "App\\Controller\\*Controller"
        depends_on:
          - "$services"
      $services:
        includes:
          - "App\\Service\\*Service"
    ```
- To use Architecture Sniffer with PHPStan, add the extension to your `phpstan.neon`:

    ```
    includes:
        - vendor/carlosas/phpat/extension.neon
    services:
        -
            class: PHPAT\PHPStan\PHPStanExtension
            tags: [phpstan.extension]
    ```
- For more details and advanced configuration, see [Kununu/ArchitectureSniffer/README.md](docs/ArchitectureSniffer/README.md).

### Require Library as a dev dependency

[](#require-library-as-a-dev-dependency)

You can use this library by issuing the following command:

```
composer require --dev kununu/code-tools --no-plugins
```

- The `--no-plugins` is used to avoid the composer plugins to be executed and prevent generating unwanted configuration files, specially in projects with `symfony/flex` installed.

Usage
-----

[](#usage)

- [.editorconfig](docs/EditorConfig/README.md) instructions.
- [PHP-CS-Fixer](docs/CsFixer/README.md) instructions.
- [PHP\_CodeSniffer](docs/CodeSniffer/README.md) instructions.
- [Rector](docs/Rector/README.md) instructions.
- [bin/code-tools](docs/CodeTools/README.md) instructions.
- [bin/php-in-k8s](docs/PhpInK8s/README.md) instructions.
- [Architecture Sniffer &amp; PHPAT](docs/ArchitectureSniffer/README.md) instructions.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~37 days

Total

20

Last Release

95d ago

Major Versions

v1.1.1 → v2.0.02024-12-19

1.x-dev → v2.1.02025-06-30

v2.1.1 → v3.0.02025-08-21

v3.2.0 → v4.0.02026-02-12

PHP version history (3 changes)1.0PHP &gt;=8.1

v3.1.0PHP &gt;=8.3

v4.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0784fa79f54d9e8f37693c3064170877cba44d00fdb8bc943b2c38838d51b086?d=identicon)[kununu-community](/maintainers/kununu-community)

---

Top Contributors

[![danielsantos-kununu](https://avatars.githubusercontent.com/u/169163382?v=4)](https://github.com/danielsantos-kununu "danielsantos-kununu (12 commits)")[![hugo-goncalves-kununu](https://avatars.githubusercontent.com/u/41483600?v=4)](https://github.com/hugo-goncalves-kununu "hugo-goncalves-kununu (6 commits)")[![pedrobaptistakununu](https://avatars.githubusercontent.com/u/124263985?v=4)](https://github.com/pedrobaptistakununu "pedrobaptistakununu (2 commits)")[![ak-kununu](https://avatars.githubusercontent.com/u/115024773?v=4)](https://github.com/ak-kununu "ak-kununu (2 commits)")[![pedropacheco-kununu](https://avatars.githubusercontent.com/u/63007328?v=4)](https://github.com/pedropacheco-kununu "pedropacheco-kununu (1 commits)")[![tdashton](https://avatars.githubusercontent.com/u/820379?v=4)](https://github.com/tdashton "tdashton (1 commits)")[![zibellino](https://avatars.githubusercontent.com/u/44662801?v=4)](https://github.com/zibellino "zibellino (1 commits)")[![CarlosGRodriguezL](https://avatars.githubusercontent.com/u/3438559?v=4)](https://github.com/CarlosGRodriguezL "CarlosGRodriguezL (1 commits)")[![csizmazia](https://avatars.githubusercontent.com/u/2581924?v=4)](https://github.com/csizmazia "csizmazia (1 commits)")[![jcostaventureoak](https://avatars.githubusercontent.com/u/23216765?v=4)](https://github.com/jcostaventureoak "jcostaventureoak (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kununu-code-tools/health.svg)

```
[![Health](https://phpackages.com/badges/kununu-code-tools/health.svg)](https://phpackages.com/packages/kununu-code-tools)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[altis/local-server

Local Server module for Altis

18208.4k2](/packages/altis-local-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
