PHPackages                             micropole-idea/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. micropole-idea/symfony3-custom-coding-standard

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

micropole-idea/symfony3-custom-coding-standard
==============================================

Fork of endouble/symfony3-custom-coding-standard including PHPCS 3 compatibility

v3.0(5y ago)0121[1 PRs](https://github.com/Micropole-IDEA/Symfony3-custom-coding-standard/pulls)MITPHP

Since Apr 10Pushed 5y agoCompare

[ Source](https://github.com/Micropole-IDEA/Symfony3-custom-coding-standard)[ Packagist](https://packagist.org/packages/micropole-idea/symfony3-custom-coding-standard)[ Docs](https://github.com/Micropole-IDEA/Symfony3-custom-coding-standard.git)[ RSS](/packages/micropole-idea-symfony3-custom-coding-standard/feed)WikiDiscussions master Synced 3w ago

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

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

[](#symfony3-custom-php-codesniffer-3-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 and it's compatible with PHPCS 3

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

[](#installation)

### Composer

[](#composer)

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

1. install with composer:

```
	composer require micropole-idea/symfony3-custom-coding-standard --dev
```

2. 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 ../../micropole-idea/symfony3-custom-coding-standard

```

3. Check the installed coding standards for "Symfony3"

    ```
     bin/phpcs -i

    ```
4. Done!

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

    ```
5. (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

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 59.4% 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 ~99 days

Recently: every ~387 days

Total

21

Last Release

2123d ago

Major Versions

2.17 → v3.02020-09-10

### Community

Maintainers

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

---

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)")[![DavidG04](https://avatars.githubusercontent.com/u/11888456?v=4)](https://github.com/DavidG04 "DavidG04 (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

symfony3Coding Standardphpcs 3

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php-symfony

A Symfony bundle for v3 of the AWS SDK for PHP

36418.6M25](/packages/aws-aws-sdk-php-symfony)[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[laminas/laminas-coding-standard

Laminas Coding Standard

341.8M615](/packages/laminas-laminas-coding-standard)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[facile-it/facile-coding-standard

Facile.it coding standard

10326.2k33](/packages/facile-it-facile-coding-standard)[secl-group/phpcs-secl-standard

A PHP\_CodeSniffer maintainability standard for Secl Group applications

149.7k](/packages/secl-group-phpcs-secl-standard)

PHPackages © 2026

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