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

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

projektmotor/symfony-coding-standard
====================================

Internal PHP coding standard of ProjektMOTOR

v1.0.17(11mo ago)370.2k↓35.7%MIT

Since Feb 27Pushed 11mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (19)Used By (0)

Symfony coding standard of ProjektMOTOR
=======================================

[](#symfony-coding-standard-of-projektmotor)

Symfony coding standards for ProjektMOTOR enriched by several useful rules.

We at ProjektMOTOR ❤️ clean code. So we have a have an internal PHP coding standard based on symfony coding standard used for all our projects. We are using [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer#readme) with the great [Symfony PHP CodeSniffer Coding Standard of djoos](https://github.com/djoos/Symfony-coding-standard) and some sniffs of [Slevomat Coding Standard](https://github.com/slevomat/coding-standard), both adopted to our own needs.

Goals of our coding standard
----------------------------

[](#goals-of-our-coding-standard)

- Using already existing standards (PSR-1, PSR-2, Symfony).
- Coding standard can be used across different projects.
- Avoid duplications (also between code, CVS history and documentation).
- Ensure code quality across different dev setups (e.g. different IDEs).

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

[](#installation)

If you use [Composer](https://getcomposer.org/), you can install ProjektMOTOR Coding Standard in your project with the following command:

```
composer require --dev projektmotor/symfony-coding-standard
```

Optional: To install coding standard automatically edit your composer script:

```
    scripts: {
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ],
        "auto-scripts": {
            "phpcs --config-set installed_paths vendor/projektmotor/symfony-coding-standard/ProjektMOTORCodingStandard/": "script",
        }
    }
```

Usage
-----

[](#usage)

Just create a `phpcs.xml.dist` in your project's root directory with the following content:

```

```

And then you can execute the CodeSniffer like this:

```
vendor/bin/phpcs -s -p --colors src/

```

---

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance50

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~226 days

Total

18

Last Release

350d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92e61c56f93da57ee92c00c6b0576b42d29deaa5c4e839ae75d2af60ae470951?d=identicon)[projektmotor](/maintainers/projektmotor)

---

Top Contributors

[![robertfausk](https://avatars.githubusercontent.com/u/1651297?v=4)](https://github.com/robertfausk "robertfausk (14 commits)")

---

Tags

code-sniffercoding-standardphpcbfphpcssymfonypsrphpcssymfonycode snifferCoding Standard

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/projektmotor-symfony-coding-standard/health.svg)](https://phpackages.com/packages/projektmotor-symfony-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)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-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)
