PHPackages                             achertovsky/phptools - 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. achertovsky/phptools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

achertovsky/phptools
====================

0.5.2(6mo ago)02.3k↓33.3%2[1 PRs](https://github.com/achertovsky/phptools/pulls)1MITPHPPHP ^8.0

Since Nov 16Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/achertovsky/phptools)[ Packagist](https://packagist.org/packages/achertovsky/phptools)[ RSS](/packages/achertovsky-phptools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (9)Used By (1)

General
=======

[](#general)

Toolset which usually required to develop php and check code you write. Contains:

- phpstan
- phpmd
- phpcs
- phpcpd
- phpmnd

Usage
=====

[](#usage)

Dependencies
------------

[](#dependencies)

Make sure your env has app called `xq`, install it via package manager

Install and first run
---------------------

[](#install-and-first-run)

```
composer require --dev achertovsky/phptools
vendor/bin/suggest-config
vendor/bin/phptools

```

Notes
-----

[](#notes)

### phpstan-related

[](#phpstan-related)

phpstan launched with `--memory_limit=-1` flag due to widely-known issues so to not it leat all memory of your machine use `-m` param of docker to limit container memory

### `phptools` options applicable

[](#phptools-options-applicable)

- `-m` will check files that is modified/added according to `git`
- `-p test.php` will check provided file only

### phpcpd

[](#phpcpd)

phar placed in lib code is [box](https://github.com/box-project/box)'ed from [latest phpcpd main branch code](https://github.com/sebastianbergmann/phpcpd) and do not belong to lib author

Tools config
============

[](#tools-config)

You can create your own

config file for phpcs
---------------------

[](#config-file-for-phpcs)

[https://github.com/squizlabs/PHP\_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file)

config file for phpmd
---------------------

[](#config-file-for-phpmd)

config file for phpstan
-----------------------

[](#config-file-for-phpstan)

config file for phpcpd
----------------------

[](#config-file-for-phpcpd)

check `phpcpd.xml` file in `config` directory

config file for phpmnd
----------------------

[](#config-file-for-phpmnd)

check `phpmnd.xml` file in `config` directory

config file for phpdrc
----------------------

[](#config-file-for-phpdrc)

Development
===========

[](#development)

```
docker build -t phptools .
docker run --rm -it -u${UID} -v${PWD}:/var/www/html -w/var/www/html phptools composer i
cp config/* .
docker run --rm -it -u${UID} -v${PWD}:/var/www/html -w/var/www/html phptools php phptools

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.4% 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 ~49 days

Recently: every ~55 days

Total

8

Last Release

201d ago

### Community

Maintainers

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

---

Top Contributors

[![achertovsky](https://avatars.githubusercontent.com/u/13575044?v=4)](https://github.com/achertovsky "achertovsky (60 commits)")[![feraldrood](https://avatars.githubusercontent.com/u/7203522?v=4)](https://github.com/feraldrood "feraldrood (1 commits)")

### Embed Badge

![Health badge](/badges/achertovsky-phptools/health.svg)

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

###  Alternatives

[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

38244.6k16](/packages/ec-europa-toolkit)

PHPackages © 2026

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