PHPackages                             sympress/qa - 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. sympress/qa

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

sympress/qa
===========

Shared QA tooling for SymPress packages.

00PHP

Since Jun 19Pushed todayCompare

[ Source](https://github.com/SymPress/qa)[ Packagist](https://packagist.org/packages/sympress/qa)[ RSS](/packages/sympress-qa/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SymPress QA
===========

[](#sympress-qa)

Shared QA tooling for SymPress packages.

This package does not replace `sympress/coding-standards`. The coding standards package remains responsible for PHPCS rulesets and custom sniffs. `sympress/qa` provides the shared toolchain, PHPStan defaults, PHPUnit templates, and the `qa` runner used by package scripts and CI.

The runner is a Symfony Console application and uses Symfony Process for tool execution. It is designed to behave the same in a standalone split package, in the SymPress monorepo, and inside CI containers.

When a monorepo root targets a package via `--package`, the runner prefers the root or QA toolchain before a package-local `vendor/bin`. That keeps direct monorepo checks deterministic even when an individual package still has an older local `vendor` directory. PHPCS and PHPCBF are executed with PHP deprecation notices suppressed, so dependency deprecations in coding-standard tooling do not abort scans on newer PHP runtimes.

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

[](#installation)

```
composer require --dev sympress/qa
```

The package intentionally keeps PHPCS, PHPStan, PHPUnit and their extensions in `require`. Downstream packages install `sympress/qa` as a dev dependency and receive the complete QA toolchain transitively.

Composer Scripts
----------------

[](#composer-scripts)

Recommended package scripts:

```
{
  "scripts": {
    "cs": "qa cs",
    "cs:fix": "qa cs:fix",
    "static-analysis": "qa static-analysis",
    "tests": "qa tests",
    "test": "@tests",
    "qa": [
      "@cs",
      "@static-analysis",
      "@tests"
    ]
  }
}
```

Packages can still keep custom implementations behind the same script names. CI should call `composer qa` and let each package decide whether it uses `sympress/qa` or custom commands.

Commands
--------

[](#commands)

```
vendor/bin/qa cs
vendor/bin/qa cs:fix
vendor/bin/qa static-analysis
vendor/bin/qa tests
vendor/bin/qa qa
vendor/bin/qa doctor --strict
```

Missing PHPStan or PHPUnit configuration is skipped by the runner. Use `doctor --strict` with an adoption file when a package is ready to make a gate mandatory.

DevOps Usage
------------

[](#devops-usage)

CI jobs can keep their package-specific behavior simple:

```
composer install --prefer-dist --no-progress --no-interaction
composer qa
```

Packages that need custom behavior can keep the same Composer script names and wrap custom commands behind them. The runner also supports direct package targeting from a monorepo root:

```
php packages/qa/bin/qa qa --package=packages/kernel
php packages/qa/bin/qa doctor --strict --package=packages/kernel
```

`doctor --strict` checks only configured required gates. Missing optional gates are reported as planned work when an adoption file is present; without one, `cs` is the only required default.

Config Includes
---------------

[](#config-includes)

PHPStan configs can include shared defaults:

```
includes:
    - vendor/sympress/qa/config/phpstan/library.neon

parameters:
    paths:
        - src
        - tests
```

WordPress packages can use:

```
includes:
    - vendor/sympress/qa/config/phpstan/wordpress.neon

parameters:
    paths:
        - src
    bootstrapFiles:
        - tests/Support/TestEnvironment.php
```

`szepeviktor/phpstan-wordpress` is installed by this package and should be loaded through `phpstan/extension-installer`. Consuming packages need to allow the Composer plugin:

```
{
  "config": {
    "allow-plugins": {
      "phpstan/extension-installer": true
    }
  }
}
```

PHPCS remains package-local through `phpcs.xml.dist`, usually referencing `SymPress-Pure`, `SymPress-WordPress`, `SymPress-Boundary`, or `SymPress-Templates`.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53712359?v=4)[Brian Schäffner](/maintainers/brianvarskonst)[@brianvarskonst](https://github.com/brianvarskonst)

---

Top Contributors

[![brianvarskonst](https://avatars.githubusercontent.com/u/53712359?v=4)](https://github.com/brianvarskonst "brianvarskonst (2 commits)")

---

Tags

cicoding-standardcomposerdeveloper-toolsdevopsphpphpcsphpstanphpunitqaquality-assurancesymfonysymfony-consolewordpress

### Embed Badge

![Health badge](/badges/sympress-qa/health.svg)

```
[![Health](https://phpackages.com/badges/sympress-qa/health.svg)](https://phpackages.com/packages/sympress-qa)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3524.1M38](/packages/jasonmccreary-laravel-test-assertions)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)[roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

41356.2k5](/packages/roquie-laravel-dusk-select2)[kunicmarko/graphql-test

GraphQL Test Cases

1359.0k](/packages/kunicmarko-graphql-test)

PHPackages © 2026

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