PHPackages                             php-composter/php-composter-phpcs-psr2 - 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. php-composter/php-composter-phpcs-psr2

ActivePhp-composter-action[Testing &amp; Quality](/categories/testing)

php-composter/php-composter-phpcs-psr2
======================================

PHP Composter PHP Code Sniffer PSR-2 (pre-commit).

v0.2.0(10y ago)872512MITPHP

Since Mar 25Pushed 10y ago2 watchersCompare

[ Source](https://github.com/php-composter/php-composter-phpcs-psr2)[ Packagist](https://packagist.org/packages/php-composter/php-composter-phpcs-psr2)[ RSS](/packages/php-composter-php-composter-phpcs-psr2/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (2)

PHP Composter PHPCS PSR-2
=========================

[](#php-composter-phpcs-psr-2)

### Check your PHP source code for PSR-2 compliance before committing.

[](#check-your-php-source-code-for-psr-2-compliance-before-committing)

[![Latest Stable Version](https://camo.githubusercontent.com/c807d1b2b4321cc42cd6006ebd13c7cd9e4c6658248a7c7dbc856425d574c188/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f6d706f737465722f7068702d636f6d706f737465722d70687063732d707372322f762f737461626c65)](https://packagist.org/packages/php-composter/php-composter-phpcs-psr2)[![Total Downloads](https://camo.githubusercontent.com/34fb17827509d5111d2e6acf40a57aebb14c412effd03f75137069f72118f39a/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f6d706f737465722f7068702d636f6d706f737465722d70687063732d707372322f646f776e6c6f616473)](https://packagist.org/packages/php-composter/php-composter-phpcs-psr2)[![Latest Unstable Version](https://camo.githubusercontent.com/d13cb58e388c922fa35992d3f9a0ee36bb9abc4defc235caa0dc5293669141ba/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f6d706f737465722f7068702d636f6d706f737465722d70687063732d707372322f762f756e737461626c65)](https://packagist.org/packages/php-composter/php-composter-phpcs-psr2)[![License](https://camo.githubusercontent.com/7d3cf6ce9d8eb7bf8844c88249d4d6961b60c1925f2d03d8ef57b110ce898a9f/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f6d706f737465722f7068702d636f6d706f737465722d70687063732d707372322f6c6963656e7365)](https://packagist.org/packages/php-composter/php-composter-phpcs-psr2)

This Composer package will start to check your PHP files upon each commit to make sure they comply to the [PSR-2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

This is a [PHP Composter](https://github.com/php-composter/php-composter) Action.

Uses the wonderful [PHP CodeSniffer Project](https://github.com/squizlabs/PHP_CodeSniffer).

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Contributing](#contributing)

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

[](#installation)

Just add as a development requirement to your `composer.json`, and it should work automagically:

```
composer require --dev php-composter/php-composter-phpcs-psr2
```

Basic Usage
-----------

[](#basic-usage)

It should just work when you `git commit`.

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

[](#contributing)

All feedback / bug reports / pull requests are welcome.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

2

Last Release

3784d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6dde7f578e5530884238e7173f768ae3a890b6d66eb99262a82f2c494a1b67d4?d=identicon)[schlessera](/maintainers/schlessera)

---

Top Contributors

[![schlessera](https://avatars.githubusercontent.com/u/83631?v=4)](https://github.com/schlessera "schlessera (4 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/php-composter-php-composter-phpcs-psr2/health.svg)

```
[![Health](https://phpackages.com/badges/php-composter-php-composter-phpcs-psr2/health.svg)](https://phpackages.com/packages/php-composter-php-composter-phpcs-psr2)
```

###  Alternatives

[slevomat/coding-standard

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

1.5k137.8M2.4k](/packages/slevomat-coding-standard)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1892.4M48](/packages/dereuromark-cakephp-ide-helper)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13195.6k8](/packages/youwe-testing-suite)[fig-r/psr2r-sniffer

Code-Sniffer, Auto-Fixer and Tokenizer for PSR2-R

321.3M162](/packages/fig-r-psr2r-sniffer)[hyva-themes/hyva-coding-standard

A set of Hyvä specific PHP CodeSniffer rules extending the Magento Coding Standard

2928.7k](/packages/hyva-themes-hyva-coding-standard)

PHPackages © 2026

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