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

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

keboola/coding-standard
=======================

Keboola coding standard

16.1.0(3mo ago)1427.3k↑13%[7 issues](https://github.com/keboola/phpcs-standard/issues)20MITPHPCI passing

Since Mar 26Pushed 3mo ago15 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (28)Used By (20)

Keboola Coding Standard
=======================

[](#keboola-coding-standard)

### Versioning

[](#versioning)

- patch versions may only weaken the checks if a bug in a sniff is found
- minor versions may only update underlying coding standards with bugfixes
- major versions may introduce new sniffs, thus causing previously good builds to fail

So you should usually be fine with composer's default `^major.minor`

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

[](#installation)

- install via composer

```
composer require --dev keboola/coding-standard

```

- copy `example/phpcs.xml` to your project root directory.
- now you can check your `src` and `tests` directory using

```
vendor/bin/phpcs src tests

```

- create `ecs.php` in your project root directory with the following content:

```
