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

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

m6web/symfony2-coding-standard
==============================

Symfony2 PHP CodeSniffer Coding Standard

v3.3.0(10y ago)19443.5k↑66.3%520MITPHP

Since May 16Pushed 7y ago7 watchersCompare

[ Source](https://github.com/M6Web/Symfony2-coding-standard)[ Packagist](https://packagist.org/packages/m6web/symfony2-coding-standard)[ RSS](/packages/m6web-symfony2-coding-standard/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (1)Versions (11)Used By (20)

Symfony2 PHP CodeSniffer Coding Standard
========================================

[](#symfony2-php-codesniffer-coding-standard)

[![Latest Stable Version](https://camo.githubusercontent.com/cec99faaa6a2c144822d65f0adf92d10f5ad1364ca44665de64818fe00ce78d1/68747470733a2f2f706f7365722e707567782e6f72672f6d367765622f73796d666f6e79322d636f64696e672d7374616e646172642f762f737461626c65)](https://packagist.org/packages/m6web/symfony2-coding-standard)[![Total Downloads](https://camo.githubusercontent.com/9d348c76bd252ab038bc60c4e25d41b0a2e86ddabc8c891b29d7911ffee42f5d/68747470733a2f2f706f7365722e707567782e6f72672f6d367765622f73796d666f6e79322d636f64696e672d7374616e646172642f646f776e6c6f616473)](https://packagist.org/packages/m6web/symfony2-coding-standard)

A code standard to check against the [Symfony coding standards](http://symfony.com/doc/current/contributing/code/standards.html), forked from [opensky/Symfony2-coding-standard](https://github.com/opensky/Symfony2-coding-standard) to allow installation with composer.

The reason of the fork is to use this PHP CodeSniffer coding standard with [M6Web/Coke](https://github.com/M6Web/Coke). More details [on our tech blog](http://tech.m6web.fr/verifier-la-coherence-du-code-d-un-projet-symfony2-avec-coke/) (in french).

We also added to this project our own standard for our Symfony2 developments entitled `M6Web_Symfony2`.

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

[](#installation)

1. [Install composer](https://getcomposer.org/download/)
2. Create a composer.json file which contains:

    ```
    {
        "require-dev": {
            "m6web/coke": "~2.1",
            "m6web/Symfony2-coding-standard": "~3.1"
        }
    }
    ```
3. Install dev dependencies

    ```
    composer update --dev
    ```
4. Create a `.coke` file a the root of the project who contain:

    ```
    standard=vendor/m6web/symfony2-coding-standard/Symfony2
    ```

    or if you want to use our standard:

    ```
    standard=vendor/m6web/symfony2-coding-standard/M6Web_Symfony2
    ```
5. Enjoy

    ```
    ./vendor/bin/coke
    ```

Credits
-------

[](#credits)

Developped by [M6Web](http://tech.m6web.fr/), cloned from [lapistano/Symfony2-coding-standard](https://github.com/lapistano/Symfony2-coding-standard). The PHP\_CodeSniffer 2.0+ Symfony2 standard is very broadly inspired from [escapestudios/Symfony2-coding-standard](https://github.com/escapestudios/Symfony2-coding-standard)

License
-------

[](#license)

This project is licensed under the [MIT license](LICENSE).

[![License](https://camo.githubusercontent.com/fc7f09fef1fd2528e15a61c132c6d107b7efc01821b6744bb635c54d036e0940/68747470733a2f2f706f7365722e707567782e6f72672f6d367765622f73796d666f6e79322d636f64696e672d7374616e646172642f6c6963656e7365)](https://packagist.org/packages/m6web/symfony2-coding-standard)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~59 days

Total

10

Last Release

3766d ago

Major Versions

v1.2.1 → v2.0.02015-01-05

v2.1.0 → v3.0.02015-07-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2069361?v=4)[Patrick](/maintainers/Bedrock)[@Bedrock](https://github.com/Bedrock)

---

Top Contributors

[![bobthecow](https://avatars.githubusercontent.com/u/53660?v=4)](https://github.com/bobthecow "bobthecow (25 commits)")[![mikaelrandy](https://avatars.githubusercontent.com/u/187703?v=4)](https://github.com/mikaelrandy "mikaelrandy (6 commits)")[![davehauenstein](https://avatars.githubusercontent.com/u/11996?v=4)](https://github.com/davehauenstein "davehauenstein (5 commits)")[![fdubost](https://avatars.githubusercontent.com/u/3973818?v=4)](https://github.com/fdubost "fdubost (5 commits)")[![francisbesset](https://avatars.githubusercontent.com/u/471525?v=4)](https://github.com/francisbesset "francisbesset (4 commits)")[![pvankouteren](https://avatars.githubusercontent.com/u/1055598?v=4)](https://github.com/pvankouteren "pvankouteren (2 commits)")[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (2 commits)")[![t-geindre](https://avatars.githubusercontent.com/u/6348039?v=4)](https://github.com/t-geindre "t-geindre (1 commits)")[![woecifaun](https://avatars.githubusercontent.com/u/5421942?v=4)](https://github.com/woecifaun "woecifaun (1 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (1 commits)")[![xgorse](https://avatars.githubusercontent.com/u/117971?v=4)](https://github.com/xgorse "xgorse (1 commits)")[![asm89](https://avatars.githubusercontent.com/u/657357?v=4)](https://github.com/asm89 "asm89 (1 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (1 commits)")[![fbrandt](https://avatars.githubusercontent.com/u/1192066?v=4)](https://github.com/fbrandt "fbrandt (1 commits)")[![jdlabails](https://avatars.githubusercontent.com/u/8875327?v=4)](https://github.com/jdlabails "jdlabails (1 commits)")[![merk](https://avatars.githubusercontent.com/u/278097?v=4)](https://github.com/merk "merk (1 commits)")[![qpleple](https://avatars.githubusercontent.com/u/774546?v=4)](https://github.com/qpleple "qpleple (1 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (1 commits)")

---

Tags

phpcsSymfony2standardcodesnifferm6web

### Embed Badge

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

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

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

601175.5M2.4k](/packages/dealerdirect-phpcodesniffer-composer-installer)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

76842.7k94](/packages/consistence-coding-standard)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

343.2M444](/packages/mediawiki-mediawiki-codesniffer)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

263.2M6](/packages/moodlehq-moodle-cs)

PHPackages © 2026

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