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

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

daniel-werner/php-quality-tools
===============================

Opinionated package for easy install php quality tools with a reasonable default setup

2.1.0(4y ago)414.5k4[1 issues](https://github.com/daniel-werner/php-quality-tools/issues)[1 PRs](https://github.com/daniel-werner/php-quality-tools/pulls)MITPHPPHP ^7.1|^8.0

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/daniel-werner/php-quality-tools)[ Packagist](https://packagist.org/packages/daniel-werner/php-quality-tools)[ Docs](https://github.com/daniel-werner/php-quality-tools)[ RSS](/packages/daniel-werner-php-quality-tools/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (11)Used By (0)

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

[](#php-quality-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c7fb3009747a706630d4f218247741fc8de56b9c35eb5ccc3a4edc2642a5cdcc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c2d7765726e65722f7068702d7175616c6974792d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-werner/php-quality-tools)[![Build Status](https://camo.githubusercontent.com/d519f43c6ca47f87510926b6e67616bc781b781d4e06ca02a18552fb48069fcb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64616e69656c2d7765726e65722f7068702d7175616c6974792d746f6f6c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/daniel-werner/php-quality-tools)[![Build Status](https://github.com/daniel-werner/php-quality-tools/actions/workflows/test.yml/badge.svg)](https://github.com/daniel-werner/php-quality-tools/actions/workflows/test.yml)[![Quality Score](https://camo.githubusercontent.com/f48a7505ca0a953d4b2cd649e63b4bf9cbe1e7b72698e3ae9ecb574764201e0c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64616e69656c2d7765726e65722f7068702d7175616c6974792d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/daniel-werner/php-quality-tools)[![Total Downloads](https://camo.githubusercontent.com/dc0cff71956e18a2c398782b1c797125fe5defe09cf947f1cf765fabcd57b888/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c2d7765726e65722f7068702d7175616c6974792d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-werner/php-quality-tools)

This package installs the most commonly used quality tools for php: [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer), [PHP Mess Detector](https://phpmd.org/), [PHP Static Analysis Tool](https://github.com/phpstan/phpstan) and [PHP Coding Standards Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer). It comes with some reasonable predefined configurations and using the PSR-2 coding style. This package can be used with Laravel applications or with any php project it is not specifically a Laravel package.

The purpose of this package is to allow php developers to quickly install and configure all the necessary quality tools for their projects.

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

[](#installation)

You can install the package via composer:

```
composer require --dev daniel-werner/php-quality-tools
```

After installing with composer, run the following command from the `root` directory of your project:

```
vendor/bin/phpqt-install
```

This will copy the default xml settings for the tools and to set up the scripts in the `composer.json`.

The install script will try to guess the source code directory in your project, if it is a Laravel application it will use the `app` directory, if it is a package it will use the `src` directory, otherwise the current directory.

You can pass the source code directory as the first argument of the install script, like this:

```
vendor/bin/phpqt-install my-app-src
```

After the installation the xml configurations can be found in your projects root directory. You can customize the phpcs and phpmd configurations by changing the settings in the xml files.

Usage
-----

[](#usage)

The package defines the following scripts in the `composer.json`:

- `composer inspect`: this command runs the PHP Code Sniffer (phpcs) and the PHP Static Analysis Tool (phpstan). It will analyze your code style and run the phpstan with the default minimum level=0
- `composer inspect-fix`: this command will try to fix the problems found by the inspection by running the PHP Coding Standards Fixer (php-cs-fixer) and the PHP Code Beautifier and Fixer (phpcbf).
- `composer insights`: runs the PHP Mess Detector to find any potential issues in your code.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Daniel Werner](https://github.com/daniel-werner)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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 ~150 days

Recently: every ~185 days

Total

6

Last Release

1660d ago

Major Versions

1.3.0 → 2.0.02021-10-31

PHP version history (2 changes)1.0.0PHP ^7.1

2.1.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38726367?v=4)[Daniel Werner](/maintainers/daniel-werner)[@daniel-werner](https://github.com/daniel-werner)

---

Top Contributors

[![daniel-werner](https://avatars.githubusercontent.com/u/38726367?v=4)](https://github.com/daniel-werner "daniel-werner (64 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (6 commits)")[![filigor94](https://avatars.githubusercontent.com/u/23530670?v=4)](https://github.com/filigor94 "filigor94 (3 commits)")[![kkarol012](https://avatars.githubusercontent.com/u/25504383?v=4)](https://github.com/kkarol012 "kkarol012 (2 commits)")[![krlv](https://avatars.githubusercontent.com/u/3404064?v=4)](https://github.com/krlv "krlv (1 commits)")[![jotasprout](https://avatars.githubusercontent.com/u/12866150?v=4)](https://github.com/jotasprout "jotasprout (1 commits)")[![zarunet](https://avatars.githubusercontent.com/u/43345608?v=4)](https://github.com/zarunet "zarunet (1 commits)")

---

Tags

hacktoberfestdaniel-wernerphp-quality-tools

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daniel-werner-php-quality-tools/health.svg)

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

###  Alternatives

[youwe/testing-suite

Contains Youwe's default testing packages for php.

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

PHPackages © 2026

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