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

ActiveCoding-standard

gsinkovskiy/itworks-coding-standard
===================================

Customized CodeSniffer ruleset for the ITWorks Soft projects

2.17(9y ago)0583MITPHP

Since Apr 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gsinkovskiy/itworks-coding-standard)[ Packagist](https://packagist.org/packages/gsinkovskiy/itworks-coding-standard)[ Docs](https://github.com/gsinkovskiy/itworks-coding-standard)[ RSS](/packages/gsinkovskiy-itworks-coding-standard/feed)WikiDiscussions master Synced 2mo ago

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

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=ITWorks /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 ITWorks

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~35 days

Recently: every ~70 days

Total

20

Last Release

3386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64451c809637a69b7f37450360cd0bcffecfb2ea3bc136d963ceea2bdf73b3f9?d=identicon)[gsinkovskiy](/maintainers/gsinkovskiy)

---

Top Contributors

[![djoos](https://avatars.githubusercontent.com/u/449510?v=4)](https://github.com/djoos "djoos (60 commits)")[![hlibsynkovskyi](https://avatars.githubusercontent.com/u/3519457?v=4)](https://github.com/hlibsynkovskyi "hlibsynkovskyi (22 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)")[![droslaw](https://avatars.githubusercontent.com/u/898669?v=4)](https://github.com/droslaw "droslaw (3 commits)")[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (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/gsinkovskiy-itworks-coding-standard/health.svg)

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

###  Alternatives

[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)[endouble/symfony3-custom-coding-standard

Customized CodeSniffer ruleset for the Symfony3 projects

11108.3k1](/packages/endouble-symfony3-custom-coding-standard)[webimpress/coding-standard

Webimpress Coding Standard

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

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)[mreduar/laravel-phpcs

PHP Codesniffer ruleset to follow Laravel's coding style

3817.3k1](/packages/mreduar-laravel-phpcs)

PHPackages © 2026

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