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

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

phpextra/symfony2-coding-standard
=================================

A code standard to check against the Symfony coding standards.

0393PHP

Since May 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/phpextra/symfony2-coding-standard)[ Packagist](https://packagist.org/packages/phpextra/symfony2-coding-standard)[ RSS](/packages/phpextra-symfony2-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Symfony2 PHP CodeSniffer Coding Standard + Object Calisthenics
==============================================================

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

A code standard to check against the [Symfony coding standards](http://symfony.com/doc/current/contributing/code/standards.html)and [object calisthenics](http://www.slideshare.net/rdohms/bettercode-phpbenelux212alternate) (adapted for PHP).

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

[](#installation)

1. Install phpcs and this coding standard via composer.json:

    ```
     "require": {
         "instaclick/php-code-sniffer": "dev-master",
         "instaclick/symfony2-coding-standard": "dev-master"
     }

    ```

Contributing
------------

[](#contributing)

If you do contribute code to these sniffs, please make sure it conforms to the PEAR coding standard and that the Symfony2-coding-standard unit tests still pass.

To check the coding standard, run from the Symfony2-coding-standard source root:

```
$ phpcs --ignore=*/tests/* --standard=PEAR . -n

```

The unit-tests are run from within the PHP\_CodeSniffer directory:

```
$ phpunit --filter Symfony2_* tests/AllTests.php

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/85f3695da9474a49d00d00449442d8f8bcbc21abfcae1c9d51a2762d0cad87f7?d=identicon)[jkobus](/maintainers/jkobus)

---

Top Contributors

[![bobthecow](https://avatars.githubusercontent.com/u/53660?v=4)](https://github.com/bobthecow "bobthecow (25 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (10 commits)")[![davehauenstein](https://avatars.githubusercontent.com/u/11996?v=4)](https://github.com/davehauenstein "davehauenstein (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)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (2 commits)")[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (2 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)")[![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)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (1 commits)")

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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