PHPackages                             wpscholar/phpcs-standards-wpscholar - 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. wpscholar/phpcs-standards-wpscholar

ActivePhpcodesniffer-standard

wpscholar/phpcs-standards-wpscholar
===================================

PHP Code Sniffer Standards for WP Scholar

1.0.7(1y ago)51.3k↓100%1[1 PRs](https://github.com/wpscholar/phpcs-standards-wpscholar/pulls)6GPL-2.0-or-later

Since Nov 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wpscholar/phpcs-standards-wpscholar)[ Packagist](https://packagist.org/packages/wpscholar/phpcs-standards-wpscholar)[ RSS](/packages/wpscholar-phpcs-standards-wpscholar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (6)

PHP Code Sniffer Standards for WordPress Development
====================================================

[](#php-code-sniffer-standards-for-wordpress-development)

An advanced configuration of the WordPress coding standards for plugin and theme development.

Usage
-----

[](#usage)

- Install [Composer](https://getcomposer.org/)
- Run `composer init` to set up Composer for your project.
- Run `composer require wpscholar/phpcs-standards-wpscholar` to install the coding standards.
- Run `vendor/bin/phpcs . --standard=WPScholar` from your project root to check your code.
- Optionally, add a script to your `composer.json` file so you can just run `composer run lint` to check your code.

```
"scripts": {
  "lint": [
    "vendor/bin/phpcs . --standard=WPScholar"
  ],
  "clean": [
    "vendor/bin/phpcbf . --standard=WPScholar"
  ]
}
```

Additional Notes
----------------

[](#additional-notes)

- Append the `-s` flag to see the internal names of the rules.
- Add `--runtime-set testVersion 8.0-` to check PHP version 8.0 or greater.
- Add a custom `phpcs.xml` file to your project to customize the ruleset or your desired configuration.

```

```

### Additional Documentation

[](#additional-documentation)

- [https://github.com/squizlabs/PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)
-
-

IDE Integration
---------------

[](#ide-integration)

Some IDE integrations of PHPCS will fail to register your ruleset since it doesn't live in your project root. In order to rectify this, place phpcs.xml at your project root:

```

```

### PHPStorm Setup

[](#phpstorm-setup)

1. Open up the preferences panel.
2. Go to "Languages &amp; Frameworks" &gt; "PHP" &gt; "Code Sniffer".
3. Ensure the "Configuration" section has "Local" set in the dropdown. Click the "..." button.
4. Set the "PHP Code Sniffer path" to be "{projectRoot}/vendor/bin/phpcs" where "{projectRoot}" is the actual path of your project root.
5. Hit "OK".
6. Go to "Editor" &gt; "Inspections" in the preference panel.
7. Click on "PHP Code Sniffer validation" under the "PHP" &gt; "Quality tools" section.
8. Hit the refresh button next to the "Coding Standard" field on the right.
9. Select "Newfold" from the dropdown.
10. Hit "OK" to exit the preferences panel.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

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

Recently: every ~501 days

Total

8

Last Release

695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae89dc177002c2f67341cde2d525e3f3c5b1d6aaaf07df15257a284f001c5551?d=identicon)[wpscholar](/maintainers/wpscholar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wpscholar-phpcs-standards-wpscholar/health.svg)

```
[![Health](https://phpackages.com/badges/wpscholar-phpcs-standards-wpscholar/health.svg)](https://phpackages.com/packages/wpscholar-phpcs-standards-wpscholar)
```

###  Alternatives

[slevomat/coding-standard

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

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3043.6M460](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[humanmade/coding-standards

Human Made Coding Standards

161424.0k48](/packages/humanmade-coding-standards)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[mayflower/mo4-coding-standard

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

17508.3k5](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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