PHPackages                             webifycms/dev-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webifycms/dev-tools

ActiveWebifycms-tool[Utility &amp; Helpers](/categories/utility)

webifycms/dev-tools
===================

Set of development tools to analyze and auto fix code standards, formatting and other stuffs for WebifyCMS packages.

v1.2.1(1mo ago)187[1 issues](https://github.com/webifycms/dev-tools/issues)MITPHPPHP &gt;=8.4

Since Sep 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/webifycms/dev-tools)[ Packagist](https://packagist.org/packages/webifycms/dev-tools)[ RSS](/packages/webifycms-dev-tools/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (13)Versions (23)Used By (0)

WebifyCMS Dev Tools
===================

[](#webifycms-dev-tools)

Set of development tools to analyze and auto-fix code standards, formatting and other stuff for WebifyCMS packages.

The following libraries are included:

- `friendsofphp/php-cs-fixer`
- `phpstan/phpstan`
- `rector/rector`
- `symfony/var-dumper`

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

[](#installation)

Install via composer

```
composer require webifycms/dev-tools --dev
```

Configuration
-------------

[](#configuration)

- PHP CS Fixer

You can add the rules and finder instance in the following way to your config file `.php-cs-fixer.php`:

```
use Webify\Tools\Fixer;
use PhpCsFixer\Finder;

// create a finder instance according to your needs
$finder = Finder::create()->in(__DIR__ . '/src');
// add the rules and it will override the defaults
$rules = [];

return (new Fixer($finder, $rules))->getConfig();
```

- PHPStan

Add `phpstan.neon` in the root directory, and include the default config like below:

```
includes:
  - vendor/webifycms/dev-tools/phpstan-default.neon
```

- Rector

Add `rector.php` in the root directory and the following, if you need to add more paths, you can add them as well:

```
use Webify\Tools\Rector;

// Initialize
return (new Rector())
    ->initialize([
        __DIR__ . '/src',
        __DIR__ . '/test'
    ])
    ->withPhpSets(php81: true);
```

Usage
-----

[](#usage)

- Analyze your code first with PHPStan static analyzer for errors and fix (manual fix):

```
vendor/bin/phpstan analyse [options] [...]
```

Additionally, add the following to your `phpstan.neon` file to enable installed PHPStan extensions:

```
includes:
    - vendor/phpstan/phpstan-strict-rules/rules.neon
    - vendor/phpstan/phpstan-phpunit/extension.neon
    - vendor/phpstan/phpstan-deprecation-rules/rules.neon
```

- Run code sniffer and format your codes.

(Recommended) If you wish to fix manually, you can just output the rules that will apply like the following.

```
./vendor/bin/php-cs-fixer fix --verbose --diff --show-progress=dots --dry-run
```

If you wish to auto-fix the files and output the summary of changes, you can run the following.

```
./vendor/bin/php-cs-fixer fix --verbose --show-progress=dots
```

Upgrade code with RectorPHP

```
# to output the changes only
./vendor/bin/rector process --dry-run

# to make the changes
./vendor/bin/rector process
```

Debugging
---------

[](#debugging)

The `symfony/var-dumper` package is included and provides the `dump()` and `dd()` helper functions for inspecting variables during development.

e.g. use `dump()` within your `.php-cs-fixer.php` or `rector.php` config files to inspect the resolved configuration:

```
use Webify\Tools\Fixer;
use PhpCsFixer\Finder;

$finder = Finder::create()->in(__DIR__ . '/src');
$config = (new Fixer($finder))->getConfig();

// Inspect the merged rules before returning
dump($config->getRules());

return $config;
```

e.g. use `dd()` function (dump and die) to halt execution after dumping:

```
$config = (new Fixer($finder))->getConfig();
dd($config->getRules());
```

Testing
-------

[](#testing)

Run unit tests with PHPUnit:

```
vendor/bin/phpunit
```

> ***NOTE:** You can also set up this extension with your favorite IDE or editor, so you can get more advantages like format on save while developing.*

TODO
----

[](#todo)

- Install `phpstan/phpstan` library.
- Install Rector `rector/rector` library.
- Add alias commands for the library commands, like the following:

```
# ./vendor/bin/php-cs-fixer fix --verbose --diff --show-progress=dots --dry-run
composer sniff

# ./vendor/bin/php-cs-fixer fix --verbose --show-progress=dots
composer code-format

# ./vendor/bin/phpstan
composer analyse
```

- Add support to pass arguments to the alias commands.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~71 days

Recently: every ~53 days

Total

20

Last Release

32d ago

Major Versions

v0.7 → v1.02024-12-19

PHP version history (2 changes)v0.1.0PHP &gt;=8.1

v1.1.0PHP &gt;=8.4

### Community

Maintainers

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

---

Top Contributors

[![Shifrin](https://avatars.githubusercontent.com/u/7717399?v=4)](https://github.com/Shifrin "Shifrin (43 commits)")[![shifreen](https://avatars.githubusercontent.com/u/109515005?v=4)](https://github.com/shifreen "shifreen (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webifycms-dev-tools/health.svg)

```
[![Health](https://phpackages.com/badges/webifycms-dev-tools/health.svg)](https://phpackages.com/packages/webifycms-dev-tools)
```

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[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)[ergebnis/rector-rules

Provides rules for rector/rector.

10245.6k51](/packages/ergebnis-rector-rules)

PHPackages © 2026

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