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

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

nette/coding-standard
=====================

v3.5.0(2mo ago)41930.0k—0.8%13[4 PRs](https://github.com/nette/coding-standard/pulls)15MITPHPPHP ^8.0

Since Jul 6Pushed 2mo ago10 watchersCompare

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

READMEChangelogDependencies (6)Versions (47)Used By (15)

Nette Coding Standard code checker &amp; fixer
==============================================

[](#nette-coding-standard-code-checker--fixer)

[![Downloads this Month](https://camo.githubusercontent.com/c8bf955ca2ab91e9da31de7311c8b36be9c4c2ae4b178b9f2bd2c299d4e47c59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e657474652f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/nette/coding-standard)[![Latest Stable Version](https://camo.githubusercontent.com/d78d314d3be8e4455fc6952799f43980831701fd48306bd6813b877302ef90bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e657474652f636f64696e672d7374616e646172642e737667)](https://github.com/nette/coding-standard/releases)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](/LICENSE)

This is set of [sniffs](https://github.com/squizlabs/PHP_CodeSniffer) and [fixers](https://github.com/FriendsOfPHP/PHP-CS-Fixer) that **checks and fixes** code of Nette Framework against [Coding Standard in Documentation](https://doc.nette.org/en/contributing/coding-standard).

Installation and Usage
----------------------

[](#installation-and-usage)

Install the tool globally:

```
composer global require nette/coding-standard

```

Check coding standard in folders `src` and `tests`:

```
ecs check src tests
```

And fix it:

```
ecs fix src tests
```

The PHP version preset is automatically detected from your project's `composer.json`. If auto-detection is not possible, you can specify it manually:

```
ecs check src tests --preset php81
```

### GitHub Actions

[](#github-actions)

```
# .github/workflows/coding-style.yml
steps:
    - uses: actions/checkout@v4
    - uses: shivammathur/setup-php@v2
      with:
          php-version: 8.1

    - run: composer create-project nette/coding-standard temp/coding-standard
    - run: php temp/coding-standard/ecs check src tests
```

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.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 ~70 days

Recently: every ~27 days

Total

46

Last Release

86d ago

Major Versions

v0.8.3 → v1.0.02018-09-12

v1.0.0 → v2.0.02018-09-12

v2.3.1 → v3.0.02020-10-29

PHP version history (4 changes)v0.1.0PHP ^7.1

v2.3.0PHP ^7.2

v3.0.1PHP ^7.2 || ^8.0

v3.4.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f266513a3ca97500ec3d85d562b9279c7a6346358fe2b8d90390ece717a027?d=identicon)[david@grudl.com](/maintainers/david@grudl.com)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (172 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (54 commits)")[![foxycode](https://avatars.githubusercontent.com/u/1284781?v=4)](https://github.com/foxycode "foxycode (4 commits)")[![skrivy](https://avatars.githubusercontent.com/u/19331294?v=4)](https://github.com/skrivy "skrivy (1 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")[![stanislav-janu](https://avatars.githubusercontent.com/u/5769861?v=4)](https://github.com/stanislav-janu "stanislav-janu (1 commits)")[![venca-x](https://avatars.githubusercontent.com/u/4173836?v=4)](https://github.com/venca-x "venca-x (1 commits)")[![MartinSzollos2016](https://avatars.githubusercontent.com/u/24376583?v=4)](https://github.com/MartinSzollos2016 "MartinSzollos2016 (1 commits)")[![paveljanda](https://avatars.githubusercontent.com/u/1488874?v=4)](https://github.com/paveljanda "paveljanda (1 commits)")

---

Tags

coding-standardnettephp-code-snifferphp-cs-fixerphp71

### Embed Badge

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

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

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)

PHPackages © 2026

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