PHPackages                             zieglerh/php-code-quality - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. zieglerh/php-code-quality

ActiveLibrary[Testing &amp; Quality](/categories/testing)

zieglerh/php-code-quality
=========================

CLI tool for running PHP 8.x for Pimcore 11 code checks

v1.0(2y ago)05501GPL-3.0-or-laterPHP

Since Mar 10Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (1)

PHP Code Quality Tools
======================

[](#php-code-quality-tools)

CLI tools for running PHP code checks and refactoring for Pimcore

- [PHP Code Quality Tools](#php-code-quality-tools)
    - [Installation](#installation)
        - [Composer](#composer)
        - [Templates](#templates)
        - [Overwrite rulesets](#overwrite-rulesets)
        - [Disable tools](#disable-tools)
    - [Execute](#execute)
        - [Code checks](#code-checks)
        - [Automatic refactoring](#automatic-refactoring)
    - [Configuring rulesets](#configuring-rulesets)
        - [Configuration](#configuration)
        - [Rulesets](#rulesets)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require --dev zieglerh/php-code-quality:^1.0
```

### Templates

[](#templates)

Copy `/templates/*` into your project root folder

### Overwrite rulesets

[](#overwrite-rulesets)

In your `.env` file you can define a path to overwrite the rulesets, e.g. from your project root

```
PHPCS_RULESET_FILE=./phpcs.xml
PHPMD_RULESET_FILE=./phpmd.xml

```

### Disable tools

[](#disable-tools)

You can disable tools in your `.env` file by setting the following

```
PHPCS=0
PHPMD=0
PHPSTAN=0

```

or disable all of them with

```
CODE_CHECKS_ENABLED=0

```

### Overwrite tool arguments

[](#overwrite-tool-arguments)

You can also overwrite tool arguments from `definition_args.conf` in your `.env` file

```
PHPCS_ARGS=...
PHPMD_ARGS=...
PHPSTAN_ARGS=...

```

Execute
-------

[](#execute)

### Code checks

[](#code-checks)

```
vendor/bin/code-check
```

To execute only specific tools, you can append one or multiple arguments

```
vendor/bin/code-check phpcs phpmd phpstan
```

### Automatic refactoring

[](#automatic-refactoring)

Display automatic code refactoring

```
vendor/bin/rector process --dry-run
```

Run rector and change all files

```
vendor/bin/rector process
```

Configuring rulesets
--------------------

[](#configuring-rulesets)

### Configuration

[](#configuration)

For configuration of tools see `defnitions_tools.conf`

### Rulesets

[](#rulesets)

Rulesets are defined inside the rulesets/\*.xml files and can be overwritten

See [Overwrite rulesets](#overwrite-rulesets)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e8a0852ce1554fdbbc6cfcd8f98b41afee17549a85a4ed49b81b2a2c5057e8b?d=identicon)[Harald Ziegler](/maintainers/Harald%20Ziegler)

### Embed Badge

![Health badge](/badges/zieglerh-php-code-quality/health.svg)

```
[![Health](https://phpackages.com/badges/zieglerh-php-code-quality/health.svg)](https://phpackages.com/packages/zieglerh-php-code-quality)
```

###  Alternatives

[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[savinmikhail/add_named_arguments_rector

Rector rule to add names to arguments for functions'/methods' calls

1969.5k3](/packages/savinmikhail-add-named-arguments-rector)

PHPackages © 2026

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