PHPackages                             wavevision/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. wavevision/coding-standard

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

wavevision/coding-standard
==========================

The Wavevision PHP coding standard.

6.0.2(5y ago)54.7k↓50%1[8 PRs](https://github.com/wavevision/coding-standard/pulls)15MITJavaScriptPHP &gt;=7.4

Since Oct 11Pushed 3y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (51)Used By (15)

[![Wavevision s.r.o.](https://camo.githubusercontent.com/9479da35305d94b0244ac1c81fe283d0abb86fe217b2a815056165c67c0574e6/68747470733a2f2f77617665766973696f6e2e636f6d2f696d616765732f77617665766973696f6e2d6c6f676f2e706e67)](https://github.com/wavevision)

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

[](#coding-standard)

[![Release](https://camo.githubusercontent.com/20b837f6777d31bebed67c6d3ae76f1562415e59f5599a7bd87bd02355e87fdb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f77617665766973696f6e2f636f64696e672d7374616e646172643f6c6162656c3d76657273696f6e26736f72743d73656d766572)](https://github.com/wavevision/coding-standard/releases)[![PHP version](https://camo.githubusercontent.com/f926042f81dd7d172a33225776fde37f8ed90988a5ef05037cf9950c5483df22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e342d626c7565)](https://www.php.net/releases/7_4_0.php)[![TypeScript version](https://camo.githubusercontent.com/bb0aab42cc3d4f72551a618e48512811d26f41b5e2bb0e40f5222d7aee1dfe08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747970657363726970742d342e312d626c7565)](https://github.com/microsoft/TypeScript)[![PHPStan](https://camo.githubusercontent.com/027fd636e970cf392fd4478baf3261048b41955d2905a95fb47da6bf19b8640a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374796c652d6c6576656c2532306d61782d627269676874677265656e2e7376673f6c6162656c3d7068707374616e)](https://github.com/phpstan/phpstan)

Code style rules and presets for [PHP](#php), [SCSS and TypeScript](#scss-and-typescript). Also contains default [PhpStorm](#phpstorm) project code style.

PHP
---

[](#php)

Rules for:

- [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

### Installation

[](#installation)

Via [Composer](https://getcomposer.org/)

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

### Setup

[](#setup)

Add to existing ruleset

```

```

or use directly

```
vendor/bin/phpcs -p --standard=vendor/wavevision/coding-standard/php/ruleset.xml
```

SCSS and TypeScript
-------------------

[](#scss-and-typescript)

Rules and presets for:

- [babel](https://github.com/babel/babel)
- [eslint](https://github.com/eslint/eslint)
- [postcss](https://github.com/postcss/postcss)
- [prettier](https://github.com/prettier/prettier)
- [stylelint](https://github.com/stylelint/stylelint)
- [TypeScript](https://github.com/microsoft/TypeScript)

### Installation

[](#installation-1)

Via [yarn](https://yarnpkg.com)

```
yarn add --dev @wavevision/coding-standard
```

or [npm](https://www.npmjs.com)

```
npm install --save-dev @wavevision/coding-standard
```

### Setup

[](#setup-1)

Following config examples can be further extended and customized according to project's needs compliant with respective library docs.

#### `babel.config.js`

[](#babelconfigjs)

```
module.exports = {
  presets: [
    '@wavevision/coding-standard/ts/babel',
    '@wavevision/coding-standard/ts/babel/react', // if project uses React
  ],
};
```

#### `.eslintrc.js`

[](#eslintrcjs)

```
module.exports = {
  extends: [
    '@wavevision/coding-standard/ts/eslint',
    '@wavevision/coding-standard/ts/eslint/react', // if project uses React
    '@wavevision/coding-standard/ts/eslint/jest', // if project uses Jest
  ].map(require.resolve),
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: '.',
  },
};
```

> **Note:** The order of `extends` items is crucial for all rules to work correctly.

#### `postcss.config.js`

[](#postcssconfigjs)

```
module.exports = require('@wavevision/coding-standard/scss/postcss');
```

#### `prettier.config.js`

[](#prettierconfigjs)

```
module.exports = require('@wavevision/coding-standard/ts/prettier');
```

#### `stylelint.config.js`

[](#stylelintconfigjs)

```
module.exports = {
  extends: '@wavevision/coding-standard/scss/stylelint',
};
```

#### `tsconfig.json`

[](#tsconfigjson)

```
{
  "extends": "@wavevision/coding-standard/ts/tsconfig.json",
  "include": ["./src/**/*"]
}
```

#### Polyfills

[](#polyfills)

Should your project need it, import `babel` polyfills consisting of `core-js` and `regenerator-runtime` stable versions.

```
import '@wavevision/coding-standard/ts/polyfills';
```

> **Note:** This might add unnecessary code to your bundle. Make sure your setup needs all the polyfills, otherwise, import required features only.

This should most likely happen in your project's top-level entry point.

PhpStorm
--------

[](#phpstorm)

1. Set `File > Settings > Editor > CodeStyle` &gt; Scheme to `Project`
2. Symlink `phpstorm/style.xml` to `.idea/codeStyles/Project.xml`

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 74.1% 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 ~14 days

Recently: every ~41 days

Total

41

Last Release

1859d ago

Major Versions

1.2.0 → 2.0.02019-11-11

2.1.7 → 3.0.02019-12-20

3.1.3 → 4.0.02020-04-07

4.0.1 → 5.0.02020-07-30

5.2.3 → 6.0.02021-02-04

PHP version history (2 changes)1.1.0PHP &gt;=7.2

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3af21e3a334be19fe9e3355c0d300a8a41e63322103aa24929e745d7cac6c965?d=identicon)[rozsival](/maintainers/rozsival)

![](https://www.gravatar.com/avatar/64a880caaffe510a647f7ae7da515846fc661fe10744b17a981ddbc47bbae4df?d=identicon)[jfilla](/maintainers/jfilla)

---

Top Contributors

[![rozsival](https://avatars.githubusercontent.com/u/7785240?v=4)](https://github.com/rozsival "rozsival (140 commits)")[![jfilla](https://avatars.githubusercontent.com/u/5280477?v=4)](https://github.com/jfilla "jfilla (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")

---

Tags

codestylephpphpstormpolyfillspresetsreactscsstypescript

### Embed Badge

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

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

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[php-standard-library/phpstan-extension

PHPStan PSL extension

201.2M13](/packages/php-standard-library-phpstan-extension)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)

PHPackages © 2026

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