PHPackages                             schnittstabil/sugared-php\_codesniffer - 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. schnittstabil/sugared-php\_codesniffer

Abandoned → [sugared-rim/php\_codesniffer](/?search=sugared-rim%2Fphp_codesniffer)Library[Testing &amp; Quality](/categories/testing)

schnittstabil/sugared-php\_codesniffer
======================================

PHP\_CodeSniffer sweetened with ease

3.1.0(8y ago)0259MITPHPPHP &gt;=5.6.0

Since Apr 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/schnittstabil/sugared-php_codesniffer)[ Packagist](https://packagist.org/packages/schnittstabil/sugared-php_codesniffer)[ RSS](/packages/schnittstabil-sugared-php-codesniffer/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

SugaredRim\\PHP\_CodeSniffer
============================

[](#sugaredrimphp_codesniffer)

[![Build Status](https://camo.githubusercontent.com/9d377c1522669647a479824537e7bfa79a77b7927209b2d28d17b9972146441c/68747470733a2f2f7472617669732d63692e6f72672f737567617265642d72696d2f7068705f636f6465736e69666665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sugared-rim/php_codesniffer) [![Coverage Status](https://camo.githubusercontent.com/e66c99fe8fad65123be5e0abaafb62b921341f756c5f8ef4dd60b46dbd0b410e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f737567617265642d72696d2f7068705f636f6465736e69666665722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/sugared-rim/php_codesniffer?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/f5200255d11cfd6e9569ae949356b1c10fcc43fed4c6d5d2e331f0d987991372/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737567617265642d72696d2f7068705f636f6465736e69666665722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sugared-rim/php_codesniffer/?branch=master) [![Code Climate](https://camo.githubusercontent.com/deadda770e370d9d20379a9e72239670e2fc4458296c9ce264ae927bee5f79d4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f737567617265642d72696d2f7068705f636f6465736e69666665722f6261646765732f6770612e737667)](https://codeclimate.com/github/sugared-rim/php_codesniffer)

[![SensioLabsInsight](https://camo.githubusercontent.com/a380261647f6c8b3aaef09a8db0dcd1afc7046fa4d5d2ea1ca18d463a74b580f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37363936646664312d363830662d346461362d616464622d3335623230386531343666322f6269672e706e67)](https://insight.sensiolabs.com/projects/7696dfd1-680f-4da6-addb-35b208e146f2)

> PHP\_CodeSniffer sweetened with ease 🍒

SugaredRim\\PHP\_CodeSniffer takes an opinionated view of code style checking with [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer), it is preconfigured to get you up and running as quickly as possible.

Install
-------

[](#install)

```
$ composer require --dev sugared-rim/php_codesniffer

```

Usage
-----

[](#usage)

Instead of running `phpcs` with all its options, just run `sugared-rim-phpcs` - that's it:

```
{
    ...
    "require-dev": {
        "sugared-rim/php_codesniffer": ...
    },
    "scripts": {
        "lint": "sugared-rim-phpcs"
    }
}
```

Configuration
-------------

[](#configuration)

You may overwrite some options by putting it in your `composer.json`.

See [schnittstabil/finder-by-config](https://github.com/schnittstabil/finder-by-config) for details of the `files` options.

Some of the default settings:

```
{
    ...
    "scripts": {
        "lint": "sugared-rim-phpcs"
    },
    "extra": {
        "sugared-rim/php_codesniffer": {
            "default_standard": ["PSR1", "PSR2"],
            "files": {
                "in": ["."],
                "name": ["*.php"],
                "files": true,
                "exclude": [
                    "build",
                    "bower_components",
                    "node_modules",
                    "vendor"
                ],
                "ignoreDotFiles": true,
                "ignoreVCS": true
            }
        }
    }
}
```

All `extra.sugared-rim/php_codesniffer` options are passed through [PHP\_CodeSniffer::setConfigData](https://github.com/squizlabs/PHP_CodeSniffer/blob/2.6.0/CodeSniffer.php#L2353), except:

- `files`: Array of files and/or directories to check.

License
-------

[](#license)

MIT © [Michael Mayer](http://schnittstabil.de)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~143 days

Recently: every ~178 days

Total

6

Last Release

3009d ago

Major Versions

0.2.0 → 1.0.02016-09-26

1.0.0 → 2.0.02016-11-08

2.0.0 → 3.0.02017-02-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6059032?v=4)[Michael Mayer](/maintainers/schnittstabil)[@schnittstabil](https://github.com/schnittstabil)

---

Top Contributors

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

---

Tags

standardsphpcsPHP\_CodeSniffersugaredpreconfiguredsugared-rim

### Embed Badge

![Health badge](/badges/schnittstabil-sugared-php-codesniffer/health.svg)

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

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

598170.6M2.2k](/packages/dealerdirect-phpcodesniffer-composer-installer)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.8k45.9M2.0k](/packages/wp-coding-standards-wpcs)[slevomat/coding-standard

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

1.5k130.4M2.1k](/packages/slevomat-coding-standard)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10327.7M59](/packages/phpcsstandards-phpcsextra)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22132.9M706](/packages/phpcompatibility-phpcompatibility-wp)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

204.9M33](/packages/acquia-coding-standards)

PHPackages © 2026

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