PHPackages                             bear/qatools - 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. bear/qatools

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

bear/qatools
============

PHP QA Tools

1.13.0(7mo ago)22116.2k↓56.2%56MITPHPPHP ^7.4 || ^8.0CI passing

Since Dec 17Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/bearsunday/BEAR.QATools)[ Packagist](https://packagist.org/packages/bear/qatools)[ RSS](/packages/bear-qatools/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (47)Used By (6)

bear/qatools
============

[](#bearqatools)

Collection of commonly used PHP QA tools.

Included in this package are:

- [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) The PHP Unit Testing framework.
- [phpmd/phpmd](https://github.com/phpmd/phpmd) PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
- [squizlabs/php\_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) PHP\_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
- [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) A tool to automatically fix PHP Coding Standards issues.
- [phpstan/phpstan](https://github.com/phpstan/phpstan) A PHP Static Analysis Tool.
- [vimeo/psalm](https://psalm.dev/) A static analysis tool for PHP.
- [phpmetrics/phpmetrics](http://www.phpmetrics.org/) Static analysis tool for PHP.

Installation
============

[](#installation)

Global install

```
composer global require bear/qatools

```

Local install

```
composer require --dev bear/qatools

```

QA Configs
----------

[](#qa-configs)

```
cp vendor/bear/qatools/phpunit.xml.dist phpunit.xml
cp vendor/bear/qatools/phpcs.xml .
cp vendor/bear/qatools/phpmd.xml .
cp vendor/bear/qatools/phpstan.neon .
psalm --init

```

CI Configs
----------

[](#ci-configs)

```
cp vendor/bear/qatools/.scrutinizer.yml .

```

- [phpunit.xml](https://phpunit.de/manual/current/en/index.html)
- [phpcs.xml](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml)
- [phpmd.xml](https://phpmd.org/documentation/creating-a-ruleset.html)
- [.php\_cs.dist](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)
- [.scrutinizer.yml](https://scrutinizer-ci.com/docs/guides/php/)

Usage
=====

[](#usage)

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

[](#composer-scripts)

```
composer tests      # Run cs, sa, and test in sequence
composer test       # Run PHPUnit tests
composer cs         # Run PHP_CodeSniffer
composer cs-fix     # Auto-fix coding standard violations with phpcbf
composer sa         # Run all static analysis (phpstan, psalm, phpmd)
composer coverage   # Generate test coverage report
composer metrics    # Generate PHPMetrics HTML report

```

Direct Commands
---------------

[](#direct-commands)

phpunit

```
phpunit

```

phpcs

```
phpcs --standard=./phpcs.xml src

```

phpstan

```
phpstan analyse -c phpstan.neon

```

psalm

```
psalm

```

phpmd

```
phpmd src text ./phpmd.xml

```

phpmetrics

```
phpmetrics --report-html=build/metrics src

```

Code Standards
==============

[](#code-standards)

- PSR-12 base with Doctrine Coding Standard
- PHPStan level: max
- Psalm errorLevel: 1
- PHP compatibility: 7.4+

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance72

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.9% 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.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~454 days

Total

45

Last Release

212d ago

PHP version history (10 changes)1.1.2PHP &gt;=5.6.0

1.7.1PHP &gt;=7.0

1.7.2PHP  &gt;=7.0 &lt;7.3

1.8.0PHP  &gt;=7.1 &lt;7.3

1.9.2PHP  &gt;=7.1

1.9.3PHP ^7.1

1.9.5PHP ^7.2

1.9.8PHP &gt;=7.2.0

1.9.12PHP ^7.2 || ^8.0

1.10.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db4fc75ffc631168d0d7143b6f2c24b1534dfb921212bd851c026c5cbbb1344d?d=identicon)[koriym](/maintainers/koriym)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (160 commits)")[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (11 commits)")[![apple-x-co](https://avatars.githubusercontent.com/u/8497012?v=4)](https://github.com/apple-x-co "apple-x-co (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![madapaja](https://avatars.githubusercontent.com/u/491357?v=4)](https://github.com/madapaja "madapaja (1 commits)")

---

Tags

beasundayciphpqatoolsphpqa

### Embed Badge

![Health badge](/badges/bear-qatools/health.svg)

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

###  Alternatives

[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)

PHPackages © 2026

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