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

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

youwe/coding-standard-magento2
==============================

Youwe PHP Coding Standard for Magento2

2.2.2(1y ago)3174.8k↓27.7%312proprietary

Since Mar 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/YouweGit/coding-standard-magento2)[ Packagist](https://packagist.org/packages/youwe/coding-standard-magento2)[ Docs](https://github.com/YouweGit/coding-standard-magento2)[ RSS](/packages/youwe-coding-standard-magento2/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (12)

Introduction
============

[](#introduction)

This is the Youwe coding standard for Magento 2 projects. It is based on the default Magento2 coding standard but some tests have been removed to create a workable and fast standard.

Installation
============

[](#installation)

Use composer to require the standard in a project.

```
composer require --dev youwe/coding-standard-magento2 -W
```

To let PHPCS know that this standard should be used add a phpcs.xml file in the root of the project.

```

```

Integration with PHPStorm and automatic testing
===============================================

[](#integration-with-phpstorm-and-automatic-testing)

The recommended way to enable the coding standard in PHPStorm and automatic testing is by requiring the Youwe testing suite in a project.

```
composer require --dev youwe/testing-suite
```

For more information go to [Youwe Testing Suite](https://github.com/YouweGit/testing-suite).

Contribution guidelines
=======================

[](#contribution-guidelines)

Contributions are welcome. Please create pull requests which add or remove tests.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~134 days

Recently: every ~124 days

Total

21

Last Release

711d ago

Major Versions

1.8.0 → 2.0.0-rc12022-08-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/127846219?v=4)[Youwe Agency](/maintainers/youweagency)[@YouweAgency](https://github.com/YouweAgency)

---

Top Contributors

[![l-helmus-youwe](https://avatars.githubusercontent.com/u/211521009?v=4)](https://github.com/l-helmus-youwe "l-helmus-youwe (14 commits)")[![leonhelmus](https://avatars.githubusercontent.com/u/18070887?v=4)](https://github.com/leonhelmus "leonhelmus (5 commits)")[![marcelmediact](https://avatars.githubusercontent.com/u/32926910?v=4)](https://github.com/marcelmediact "marcelmediact (3 commits)")[![arnoudhgz](https://avatars.githubusercontent.com/u/10864061?v=4)](https://github.com/arnoudhgz "arnoudhgz (1 commits)")[![ashokadewit](https://avatars.githubusercontent.com/u/45412158?v=4)](https://github.com/ashokadewit "ashokadewit (1 commits)")[![elzekool](https://avatars.githubusercontent.com/u/2158053?v=4)](https://github.com/elzekool "elzekool (1 commits)")

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.3k](/packages/slevomat-coding-standard)[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6340.1M97](/packages/phpcsstandards-phpcsutils)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

497.5M54](/packages/woocommerce-woocommerce-sniffs)[laminas/laminas-coding-standard

Laminas Coding Standard

341.8M616](/packages/laminas-laminas-coding-standard)

PHPackages © 2026

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