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

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

whatwedo/php-coding-standard
============================

Default PHP coding standard at whatwedo

v1.3.1(6mo ago)236.2k↓27.1%2[9 issues](https://github.com/whatwedo/PhpCodingStandard/issues)[5 PRs](https://github.com/whatwedo/PhpCodingStandard/pulls)9MITPHPPHP &gt;=7.4

Since Sep 25Pushed 6mo ago8 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (30)Used By (9)

[![Latest Stable Version](https://camo.githubusercontent.com/8615ed42522301e6a7afbd87b0228c931bff3e847d5f31d1393f37a93db5153a/68747470733a2f2f706f7365722e707567782e6f72672f776861747765646f2f7068702d636f64696e672d7374616e646172642f762f737461626c65)](https://packagist.org/packages/whatwedo/php-coding-standard)

PhpCodingStandard
=================

[](#phpcodingstandard)

This project is a set of coding standard rules, which we are using at [whatwedo](https://whatwedo.ch). It's heavily based on [Simplify/EasyCodingStandard](https://github.com/Symplify/EasyCodingStandard).

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

[](#installation)

We suggest to use Composer to install this project:

```
composer require whatwedo/php-coding-standard

```

Usage
-----

[](#usage)

### Without custom configuration

[](#without-custom-configuration)

You can run the checks without project specific configuration using one of following commands:

```
vendor/bin/ecs check SRC_DIRECTORY --config vendor/whatwedo/php-coding-standard/config/whatwedo-symfony.php # Symfony projects
vendor/bin/ecs check SRC_DIRECTORY --config vendor/whatwedo/php-coding-standard/config/whatwedo-wordpress.php # WordPress projects
vendor/bin/ecs check SRC_DIRECTORY --config vendor/whatwedo/php-coding-standard/config/whatwedo-common.php # Common PHP projects

```

### With custom configuration

[](#with-custom-configuration)

If you want to add additional checkers or exclude files, you have to create an `ecs.php` file in your own project root directory.

```
