PHPackages                             sebastiaanluca/php-codesniffer-ruleset - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sebastiaanluca/php-codesniffer-ruleset

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

sebastiaanluca/php-codesniffer-ruleset
======================================

An opinionated custom coding standard.

0.4.3(6y ago)45.4k3MIT

Since Sep 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sebastiaanluca/php-codesniffer-ruleset)[ Packagist](https://packagist.org/packages/sebastiaanluca/php-codesniffer-ruleset)[ RSS](/packages/sebastiaanluca-php-codesniffer-ruleset/feed)WikiDiscussions develop Synced today

READMEChangelog (5)Dependencies (2)Versions (13)Used By (3)

An opinionated custom coding standard
=====================================

[](#an-opinionated-custom-coding-standard)

[![Latest stable release](https://camo.githubusercontent.com/046cd24e62262b6fe8f86e489fb10f34ebd28c3efad93b35fd8200ad62f4b417/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365626173746961616e6c7563612f7068702d636f6465736e69666665722d72756c657365742e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/sebastiaanluca/php-codesniffer-ruleset)[![Software license](https://camo.githubusercontent.com/08662bb339bee903c7279b82f3217310d3f196fdfa63b019d294ae85e1a5d7d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d696e666f726d6174696f6e616c2e737667)](LICENSE.md)[![Total downloads](https://camo.githubusercontent.com/f8e0f34b1ec07750ba2d6a9676f4d4d47b580c407b018200e0493732d1e921f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365626173746961616e6c7563612f7068702d636f6465736e69666665722d72756c657365742e7376673f636f6c6f723d627269676874677265656e)](https://packagist.org/packages/sebastiaanluca/php-codesniffer-ruleset)[![Total stars](https://camo.githubusercontent.com/957c971e5190d117f7b405cce7642ae30f018d9a53ee17f8e5a55684b1b6d9e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7365626173746961616e6c7563612f7068702d636f6465736e69666665722d72756c657365742e7376673f636f6c6f723d627269676874677265656e)](https://github.com/sebastiaanluca/php-codesniffer-ruleset)

[![Read my blog](https://camo.githubusercontent.com/0760b582e22202bd412feb64f5f87b6459f64a0b8ea5fdd24cbadf87df736177/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c696e6b2d626c6f672d6c69676874677265792e737667)](https://blog.sebastiaanluca.com)[![View my other packages and projects](https://camo.githubusercontent.com/5ce3a83ee0ec2b4ae47a99f67347c1d8e78582757eca80fe31c98e5bd0e2185a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c696e6b2d6f746865725f7061636b616765732d6c69676874677265792e737667)](https://packagist.org/packages/sebastiaanluca)[![Follow @sebastiaanluca on Twitter](https://camo.githubusercontent.com/bde346ed8efc8b2458386b36256c64e3fe010276f449b80fe4f663c4c8bbd83e/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f7365626173746961616e6c7563612e7376673f7374796c653d736f6369616c)](https://twitter.com/sebastiaanluca)

Table of contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [How to install](#how-to-install)
    - [Enabling the rules](#enabling-the-rules)
    - [Sniffing code](#sniffing-code)
    - [Sniffing code in PHPStorm](#sniffing-code-in-phpstorm)
- [License](#license)
- [Change log](#change-log)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [About](#about)

Requirements
------------

[](#requirements)

- [squizlabs/php\_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) 3.3.1 or higher
- [slevomat/coding-standard](https://github.com/slevomat/coding-standard) 4.7 or higher

How to install
--------------

[](#how-to-install)

```
composer require sebastiaanluca/php-codesniffer-ruleset --dev
```

How to use
----------

[](#how-to-use)

### Enabling the rules

[](#enabling-the-rules)

Add it to your project `phpcs.xml` or `phpcs.xml.dist` ruleset:

```

    ./src
    ./tests

```

### Sniffing code

[](#sniffing-code)

The following commands can be added to the `scripts` section of your `composer.json` file to check and fix invalid code. Some optional checks are also included to illustrate how they might work together to check all your code.

```
{
    "scripts": {
        "composer-validate": "@composer validate --no-check-all --strict",
        "codesniffer-check": "vendor/bin/phpcs --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1",
        "codesniffer-fix": "vendor/bin/phpcbf --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 || exit 0",
        "test": "vendor/bin/phpunit",
        "check": [
            "@composer-validate",
            "@codesniffer-check",
            "@test"
        ]
    }
}
```

### Sniffing code in PHPStorm

[](#sniffing-code-in-phpstorm)

See [PHP Code Sniffer in PhpStorm](https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm) on how to set up CodeSniffer in PHPStorm.

License
-------

[](#license)

This package operates under the MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sebastiaan Luca](https://github.com/sebastiaanluca)
- [All Contributors](../../contributors)

About
-----

[](#about)

My name is Sebastiaan and I'm a freelance Laravel developer specializing in building custom Laravel applications. Check out my [portfolio](https://www.sebastiaanluca.com) for more information, [my blog](https://blog.sebastiaanluca.com) for the latest tips and tricks, and my other [packages](https://packagist.org/packages/sebastiaanluca) to kick-start your next project.

Have a project that could use some guidance? Send me an e-mail at !

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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

Recently: every ~12 days

Total

11

Last Release

2454d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/711940?v=4)[Sebastiaan Luca](/maintainers/sebastiaanluca)[@sebastiaanluca](https://github.com/sebastiaanluca)

---

Top Contributors

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

---

Tags

analysescodesniffercodingphpstandardstatic

### Embed Badge

![Health badge](/badges/sebastiaanluca-php-codesniffer-ruleset/health.svg)

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

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[genealabs/php-coding-standards

1654.8k1](/packages/genealabs-php-coding-standards)

PHPackages © 2026

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