PHPackages                             dtforce/coding-standard - 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. dtforce/coding-standard

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

dtforce/coding-standard
=======================

Set of rules for PHP\_CodeSniffer preferring tabs and based on Nette coding standard.

1.0.6(9y ago)0739MITPHPPHP &gt;=5.6

Since Nov 22Pushed 9y ago2 watchersCompare

[ Source](https://github.com/DTForce/CodingStandard)[ Packagist](https://packagist.org/packages/dtforce/coding-standard)[ RSS](/packages/dtforce-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (8)Used By (0)

Coding Standard
===============

[](#coding-standard)

Set of rules for [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) preferring tabs and based on [Nette coding standard](http://nette.org/en/coding-standard).

**Check [rules overview](docs/en/dtforce-rules-overview.md) for examples.**

Install
-------

[](#install)

```
$ composer require dtforce/coding-standard --dev
```

Usage
-----

[](#usage)

Run with Php\_CodeSniffer:

```
$ vendor/bin/phpcs src --standard=vendor/dtforce/coding-standard/src/DTForceCodingStandard/ruleset.xml -p
```

That's all!

PhpStorm Integration
--------------------

[](#phpstorm-integration)

If you use PhpStorm, code sniffer can check your syntax as you write. [How to integrate?](docs/en/integration-to-php-storm.md)

How to be both Lazy and Safe
----------------------------

[](#how-to-be-both-lazy-and-safe)

### Composer hook

[](#composer-hook)

In case you don't want to use Php\_CodeSniffer manually for every change in the code you make, you can add pre-commit hook via `composer.json`:

```
"scripts": {
	"post-install-cmd": [
		"DTForce\\CodingStandard\\Composer\\ScriptHandler::addPhpCsToPreCommitHook"
	],
	"post-update-cmd": [
		"DTForce\\CodingStandard\\Composer\\ScriptHandler::addPhpCsToPreCommitHook"
	]
}
```

**Every time you try to commit, Php\_CodeSniffer will run on changed `.php` files only.**

This is much faster than checking whole project, running manually or wait for CI.

*Pretty cool, huh?*

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 82.2% 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 ~48 days

Recently: every ~72 days

Total

7

Last Release

3532d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79f79e0987cc6a5a2870470decc69a8899631353646969a06211a85fc4fc6f9e?d=identicon)[ket4z](/maintainers/ket4z)

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

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (60 commits)")[![mortam](https://avatars.githubusercontent.com/u/24390291?v=4)](https://github.com/mortam "mortam (11 commits)")[![ket4z](https://avatars.githubusercontent.com/u/10392329?v=4)](https://github.com/ket4z "ket4z (1 commits)")[![maresja1](https://avatars.githubusercontent.com/u/1552179?v=4)](https://github.com/maresja1 "maresja1 (1 commits)")

### Embed Badge

![Health badge](/badges/dtforce-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/dtforce-coding-standard/health.svg)](https://phpackages.com/packages/dtforce-coding-standard)
```

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2226.9k5](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

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