PHPackages                             jakubzapletal/php\_codesniffer-rules - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. jakubzapletal/php\_codesniffer-rules

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

jakubzapletal/php\_codesniffer-rules
====================================

Library of modified PSR rules for PHP\_CodeSniffer

0.1.0(11y ago)02.7k3MIT

Since Apr 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jakubzapletal/PHP_CodeSniffer-rules)[ Packagist](https://packagist.org/packages/jakubzapletal/php_codesniffer-rules)[ RSS](/packages/jakubzapletal-php-codesniffer-rules/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (3)

PHP\_CodeSniffer rules
======================

[](#php_codesniffer-rules)

[![Latest Stable Version](https://camo.githubusercontent.com/70fb20591afd06496b224e49096fbd3a611f6ade137e8a1d5aaa674040c3c612/68747470733a2f2f706f7365722e707567782e6f72672f6a616b75627a61706c6574616c2f7068705f636f6465736e69666665722d72756c65732f762f737461626c652e706e67)](https://packagist.org/packages/jakubzapletal/php_codesniffer-rules)[![Total Downloads](https://camo.githubusercontent.com/eebd65ec644c36a2ca0ab8310f75c3662beb091338eb77f20ecd53f33eb62b2e/68747470733a2f2f706f7365722e707567782e6f72672f6a616b75627a61706c6574616c2f7068705f636f6465736e69666665722d72756c65732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jakubzapletal/php_codesniffer-rules)[![Latest Unstable Version](https://camo.githubusercontent.com/d48090194ee76c9c3b3159e77d77c9d00da0dfc907cf2ba4565b203a0c4faa09/68747470733a2f2f706f7365722e707567782e6f72672f6a616b75627a61706c6574616c2f7068705f636f6465736e69666665722d72756c65732f762f756e737461626c652e706e67)](https://packagist.org/packages/jakubzapletal/php_codesniffer-rules)[![License](https://camo.githubusercontent.com/c940c1eb951a0d8cfa7481fc50506e4e6856a4106a7b33279609941dc072b78e/68747470733a2f2f706f7365722e707567782e6f72672f6a616b75627a61706c6574616c2f7068705f636f6465736e69666665722d72756c65732f6c6963656e73652e706e67)](https://packagist.org/packages/jakubzapletal/php_codesniffer-rules)

This is a simple library of modified [PSR](https://github.com/php-fig/fig-standards) rules for [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

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

[](#installation)

### Composer

[](#composer)

If you don't have Composer [install](http://getcomposer.org/doc/00-intro.md#installation) it:

```
$ curl -s https://getcomposer.org/installer | php
```

Add `jakubzapletal/php_codesniffer-rules` to `composer.json`:

```
$ composer require --dev jakubzapletal/php_codesniffer-rules ~0.1
```

Usage
-----

[](#usage)

### PSR2 without camel case method name

[](#psr2-without-camel-case-method-name)

Sometimes it is a coding convention to write method names with an underscore in test classes. In this case you can still keep checking PSR-2 standard thanks to ruleset below.

```
$ vendor/bin/phpcs --standard=vendor/jakubzapletal/php_codesniffer-rules/psr2-without-camel-case-method-name.xml
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4087d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/983464?v=4)[Jakub Zapletal](/maintainers/jakubzapletal)[@jakubzapletal](https://github.com/jakubzapletal)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jakubzapletal-php-codesniffer-rules/health.svg)

```
[![Health](https://phpackages.com/badges/jakubzapletal-php-codesniffer-rules/health.svg)](https://phpackages.com/packages/jakubzapletal-php-codesniffer-rules)
```

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M33](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17524.8k7](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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