PHPackages                             endouble/symfony3-custom-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. [Testing &amp; Quality](/categories/testing)
4. /
5. endouble/symfony3-custom-coding-standard

ActiveCoding-standard[Testing &amp; Quality](/categories/testing)

endouble/symfony3-custom-coding-standard
========================================

Customized CodeSniffer ruleset for the Symfony3 projects

2.17(9y ago)11108.3k↓50%10[2 PRs](https://github.com/Endouble/Symfony3-custom-coding-standard/pulls)1MITPHP

Since Apr 10Pushed 7y ago4 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (22)Used By (1)

Symfony3 Custom PHP CodeSniffer Coding Standard
===============================================

[](#symfony3-custom-php-codesniffer-coding-standard)

This is a fork of These are the Symfony2 standards, but tweaked to meet some needs we have in our CSB project, for example to comply with [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md) for PHP 7

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

[](#installation)

### Composer

[](#composer)

This standard can be installed with the [Composer](https://getcomposer.org/) dependency manager.

1. Add the repository to your composer.json:

```
 "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:Endouble/Symfony3-custom-coding-standard"
        }
```

2. Add the coding standard as a dependency of your project

```
 "require-dev": {
        "endouble/symfony3-custom-coding-standard": "^2.10"
    },
```

3. Add the coding standard to the PHP\_CodeSniffer install path

The path is relative to the php\_codesniffer install path. This is important to make it work both in your vagrant, local machine and PHPStorm

```
    bin/phpcs --config-set installed_paths ../../endouble/symfony3-custom-coding-standard

```

4. Check the installed coding standards for "Symfony2"

    ```
     bin/phpcs -i

    ```
5. Done!

    ```
    bin/phpcs --standard=Symfony3Custom /path/to/code

    ```
6. (optional) Set up PHPStorm

- configure code sniffer under Languages &amp; Frameworks -&gt; PHP -&gt; Code Sniffer
- Go to Editor -&gt; Inspections -&gt; PHP Code sniffer, refresh the standards and select Symfony3Custom

Customizations
--------------

[](#customizations)

The following adjustments have been made to the original standard:

In Sniff/WhiteSpace/AssignmentSpacingSniff:

- Added an exception for `declare(strict_types=1);` to comply with [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md#3-declare-statements-namespace-and-use-declarations)

In Sniff/WhiteSpace/FunctionalClosingBraceSniff:

- copied from Squiz and adapted to have no blank line at the end of a function

In Sniff/Commenting/FunctionCommentSniff:

- check for 1 blank line above a docblock
- don't check docblocks for test and setUp methods (PHPunit, would be blank)
- do check protected and private methods for docblocks

In Sniff/NamingConventions/ValidClassNameSniff

- remove the abstract class name rule

In ruleset.xml

- Disabled the class comment rule
- Changed the concatenation spacing rule, for readability, to require 1 space around concatenation dot, instead of no spaces as the [Symfony](https://symfony.com/doc/current/contributing/code/standards.html#structure) standard requires.
- Re-enabled the blank line check from superfluousWhitespace (disabled in PSR-2)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 61.2% 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 ~37 days

Recently: every ~82 days

Total

20

Last Release

3338d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1217690?v=4)[Thanos Polymeneas](/maintainers/thanosp)[@thanosp](https://github.com/thanosp)

![](https://avatars.githubusercontent.com/u/3639548?v=4)[Karin van den Berg](/maintainers/kvdnberg)[@kvdnberg](https://github.com/kvdnberg)

![](https://avatars.githubusercontent.com/u/12908799?v=4)[Endouble](/maintainers/endouble)[@Endouble](https://github.com/Endouble)

---

Top Contributors

[![djoos](https://avatars.githubusercontent.com/u/449510?v=4)](https://github.com/djoos "djoos (60 commits)")[![kvdnberg](https://avatars.githubusercontent.com/u/3639548?v=4)](https://github.com/kvdnberg "kvdnberg (13 commits)")[![Craige](https://avatars.githubusercontent.com/u/469311?v=4)](https://github.com/Craige "Craige (8 commits)")[![wickedOne](https://avatars.githubusercontent.com/u/343850?v=4)](https://github.com/wickedOne "wickedOne (6 commits)")[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (3 commits)")[![droslaw](https://avatars.githubusercontent.com/u/898669?v=4)](https://github.com/droslaw "droslaw (3 commits)")[![bertramakers](https://avatars.githubusercontent.com/u/959026?v=4)](https://github.com/bertramakers "bertramakers (2 commits)")[![rweich](https://avatars.githubusercontent.com/u/9618911?v=4)](https://github.com/rweich "rweich (2 commits)")[![joshuataylor](https://avatars.githubusercontent.com/u/225131?v=4)](https://github.com/joshuataylor "joshuataylor (1 commits)")

---

Tags

phpcssymfony3Coding Standard

### Embed Badge

![Health badge](/badges/endouble-symfony3-custom-coding-standard/health.svg)

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

###  Alternatives

[slevomat/coding-standard

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

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[escapestudios/symfony2-coding-standard

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.1M275](/packages/escapestudios-symfony2-coding-standard)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[webimpress/coding-standard

Webimpress Coding Standard

142.1M37](/packages/webimpress-coding-standard)

PHPackages © 2026

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