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

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

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

Youwe PHP Coding Standard

3.6.2(11mo ago)4183.6k—0.2%2[1 PRs](https://github.com/YouweGit/coding-standard/pulls)3MITPHPPHP ^7.0 || ^8.0

Since Apr 22Pushed 11mo ago1 watchersCompare

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

READMEChangelog (8)Dependencies (3)Versions (52)Used By (3)

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

[](#introduction)

This is the Youwe coding standard, it contains rule sets for PHPCS and PHPMD.

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

[](#installation)

Use composer to install the coding standard in the home directory.

```
composer global require youwe/coding-standard
```

Configuring PHPStorm to use the coding standard.
================================================

[](#configuring-phpstorm-to-use-the-coding-standard)

First configure PHPStorm to use the right phpcs command.

Go to **Settings &gt; Languages &amp; Frameworks &gt; PHP &gt; Code Sniffer**. Choose "Local" for the path and fill in the full path to `~/.config/composer/vendor/bin/phpcs`

Then go to **Settings &gt; Editor &gt; Inspections** and search for PHP Code Sniffer Validation. Select Custom and the add the path to `~/.config/composer/vendor/youwe/coding-standard/src/Youwe`

Using the coding standard in a project
======================================

[](#using-the-coding-standard-in-a-project)

To use the standard in a project the standard needs to be required in composer.

```
cd
composer require youwe/coding-standard --dev
```

This will add the coding standard to the vendor directory of the project.

To let phpcs use the coding standard add a file phpcs.xml to the root of the project.

```

```

The standard can be checked from the command line by going to the directory.

```
cd
./vendor/bin/phpcs ./src
```

Configuring PHP CodeSniffer to also show less severe messages
=============================================================

[](#configuring-php-codesniffer-to-also-show-less-severe-messages)

By default PHP CodeSniffer shows only messages with a severity higher than **5**. The Youwe coding standard also has some messages with a lower severity. These are messages that encourage a better way of coding but should not block a pull request.

To configure phpcs to show also these messages execute the following command.

```
~/.config/composer/vendor/bin/phpcs --config-set severity 1
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance52

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~69 days

Recently: every ~245 days

Total

49

Last Release

334d ago

Major Versions

1.9.1 → 2.0.02017-11-02

2.0.6 → 3.0.02020-06-08

PHP version history (4 changes)1.0.0PHP &gt;=5.4.0

1.3.3PHP ^5.4.0 || ^7.0

3.1.0PHP ^7.0

3.3.1PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1aea28c806322edb89f68278b28e8e95d5daeff723b442fa6eef3449c2b7fe8?d=identicon)[youweagency](/maintainers/youweagency)

---

Top Contributors

[![l-helmus-youwe](https://avatars.githubusercontent.com/u/211521009?v=4)](https://github.com/l-helmus-youwe "l-helmus-youwe (17 commits)")[![vssr](https://avatars.githubusercontent.com/u/912625?v=4)](https://github.com/vssr "vssr (11 commits)")[![leonhelmus](https://avatars.githubusercontent.com/u/18070887?v=4)](https://github.com/leonhelmus "leonhelmus (9 commits)")[![ashokadewit](https://avatars.githubusercontent.com/u/45412158?v=4)](https://github.com/ashokadewit "ashokadewit (6 commits)")[![marcelmediact](https://avatars.githubusercontent.com/u/32926910?v=4)](https://github.com/marcelmediact "marcelmediact (4 commits)")[![rutgerrademaker](https://avatars.githubusercontent.com/u/912316?v=4)](https://github.com/rutgerrademaker "rutgerrademaker (3 commits)")[![michielfb](https://avatars.githubusercontent.com/u/3659033?v=4)](https://github.com/michielfb "michielfb (1 commits)")[![jasperzeinstra](https://avatars.githubusercontent.com/u/9214557?v=4)](https://github.com/jasperzeinstra "jasperzeinstra (1 commits)")

### Embed Badge

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

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

###  Alternatives

[mayflower/mo4-coding-standard

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

17508.3k5](/packages/mayflower-mo4-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)

PHPackages © 2026

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