Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
December 13, 2022 23:58
December 13, 2022 23:58
December 21, 2022 01:45
May 15, 2017 00:28
May 15, 2017 00:32
June 15, 2022 16:08
October 23, 2022 18:37
December 15, 2021 20:14
November 28, 2022 01:04

Nette Coding Standard code checker & fixer

Downloads this Month Latest Stable Version License

This is set of sniffs and fixers that checks and fixes code of Nette Framework against Coding Standard in Documentation.

Installation and Usage

Install the tool in a global directory. Its name will be for example /nette-cs:

composer create-project nette/coding-standard /nette-cs

Check coding standard for PHP 7.1 in folders src and tests:

/nette-cs/ecs check src tests --preset php71

And fix it:

/nette-cs/ecs fix src tests --preset php71

If no PHP version is specified, it will try to find out from the composer.json file.

GitHub Actions

# .github/workflows/coding-style.yml
    - uses: actions/checkout@v2
    - uses: shivammathur/setup-php@v2
          php-version: 8.0

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