PHPackages                             devgeniem/geniem-rules-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. devgeniem/geniem-rules-codesniffer

ActivePhpcodesniffer-standard

devgeniem/geniem-rules-codesniffer
==================================

Geniem Oy (WordPress) CodeSniffer Rules

1.5.0(7mo ago)258.4k↓48.4%[5 PRs](https://github.com/devgeniem/geniem-rules-codesniffer/pulls)20MITPHPPHP &gt;=8.0CI passing

Since Jun 1Pushed 7mo ago20 watchersCompare

[ Source](https://github.com/devgeniem/geniem-rules-codesniffer)[ Packagist](https://packagist.org/packages/devgeniem/geniem-rules-codesniffer)[ RSS](/packages/devgeniem-geniem-rules-codesniffer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (7)Versions (24)Used By (20)

[![geniem-github-banner](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)

Geniem (WordPress) PHP\_CodeSniffer Rules
=========================================

[](#geniem-wordpress-php_codesniffer-rules)

A custom set of rules to check styles for a Geniem WP projects.

Extends WordPress, WordPress-Docs, WordPress-Extra, and others, but makes some convenience changes to the rules.

Adds to the mix some of our own rules:

- `Geniem.ControlStructures.ElseCatchNewline`
    - Make else and catch blocks to start from new line

[The Geniem standard contains over 250 rules. Check them out.](USED_RULES.md)

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

[](#installation)

```
composer require --dev devgeniem/geniem-rules-codesniffer
cp vendor/devgeniem/geniem-rules-codesniffer/phpcs.xml.dist-project phpcs.xml.dist

```

Usage
-----

[](#usage)

Use `vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/` to make sure you are using the `phpcs` command from this package.

You could add to your project `composer.json` file the following:

```
{
    "scripts": {
        "lint": "vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/ -s --warning-severity=0",
        "lint-all": "vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/",
        "lint-fix": "vendor/bin/phpcbf --standard=phpcs.xml.dist --basepath=. ./web/app/ ./config/"
    }
}
```

After that has been added to your `composer.json` file, you can run `composer lint` to check for all the errors and warnings.

Development
-----------

[](#development)

This project contains few helpers to make the development experience easier and faster.

These commands are available in the `composer.json` file, and are used `composer [command]`. The `composer` part has been omitted for brevity.

CommandDescription`used-rules-list-update`Updates `USED_RULES.md``cl-bump`Create new version in `CHANGELOG.md``cl-change [message]`Add an entry to Changed -section.`cl-add [message]`Add an entry to Added -section.`cl-fix [message]`Add an entry to Fixed -section.`cl-remove [message]`Add an entry to Removed -section.`cl-ready`Mark the version ready for release.`cl-version`Show the current version.`changelog-tag-and-release [version]`**REQUIRES GPG** Tag and release the version.Developers
----------

[](#developers)

- [See contributors](https://github.com/devgeniem/geniem-rules-codesniffer/graphs/contributors)

License
-------

[](#license)

MIT

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance64

Regular maintenance activity

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 56.4% 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 ~108 days

Recently: every ~249 days

Total

19

Last Release

217d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.3

1.4.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11960000?v=4)[Hion Digital Oy](/maintainers/devgeniem)[@devgeniem](https://github.com/devgeniem)

---

Top Contributors

[![ivuorinen](https://avatars.githubusercontent.com/u/11024?v=4)](https://github.com/ivuorinen "ivuorinen (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![HPiirainen](https://avatars.githubusercontent.com/u/5830146?v=4)](https://github.com/HPiirainen "HPiirainen (10 commits)")[![jonihion](https://avatars.githubusercontent.com/u/155982263?v=4)](https://github.com/jonihion "jonihion (1 commits)")[![Nomafin](https://avatars.githubusercontent.com/u/3604893?v=4)](https://github.com/Nomafin "Nomafin (1 commits)")

---

Tags

php-codesniffer-rulesphpcsphpcs-standardsnifferwordpressstandardsphpcswordpresstooling

### Embed Badge

![Health badge](/badges/devgeniem-geniem-rules-codesniffer/health.svg)

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

###  Alternatives

[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.

22130.6M587](/packages/phpcompatibility-phpcompatibility-wp)[automattic/vipwpcs

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

25510.2M145](/packages/automattic-vipwpcs)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[inpsyde/php-coding-standards

PHP 7.4+ coding standards for Syde WordPress projects.

101163.9k45](/packages/inpsyde-php-coding-standards)

PHPackages © 2026

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