PHPackages                             davekellam/phpcs-wp - 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. davekellam/phpcs-wp

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

davekellam/phpcs-wp
===================

099[1 issues](https://github.com/davekellam/phpcs-wp/issues)1

Since Jul 21Pushed 7mo agoCompare

[ Source](https://github.com/davekellam/phpcs-wp)[ Packagist](https://packagist.org/packages/davekellam/phpcs-wp)[ RSS](/packages/davekellam-phpcs-wp/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (1)

PHPCS Configuration
===================

[](#phpcs-configuration)

Composer library to provide drop in installation and configuration of [WPCS](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) and [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP), setting reasonable defaults for WordPress development with nearly zero configuration.

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

[](#installation)

Install the library via Composer:

```
$ composer require --dev davekellam/wp-phpcs-composer:main
```

That's it!

Usage
-----

[](#usage)

Lint your PHP files with the following command:

```
$ ./vendor/bin/phpcs .
```

If relying on Composer, edit the `composer.json` file by adding the following:

```
	"scripts": {
		"lint": [
			"phpcs ."
		],
	}
```

Then lint via:

```
$ composer run lint
```

### Continuous Integration

[](#continuous-integration)

PHPCS Configuration plays nicely with Continuous Integration solutions. Out of the box, the library loads the `DK-Default` ruleset, and checks for syntax errors for PHP 7 or higher.

To override the default PHP version check, set the `--runtime-set testVersion 7.0-` configuration option. Example for PHP version 7.2 and above:

```
$ ./vendor/bin/phpcs --runtime-set testVersion 7.2-
```

See more [information about specifying PHP version](https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions).

Note that you can only overrule PHP version check from the command-line.

### IDE Integration

[](#ide-integration)

Some IDE integrations of PHPCS fail to register the `DK-Default` ruleset. In order to rectify this, place `phpcs.xml` at your project root:

```

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance44

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60804?v=4)[Dave Kellam](/maintainers/davekellam)[@davekellam](https://github.com/davekellam)

---

Top Contributors

[![davekellam](https://avatars.githubusercontent.com/u/60804?v=4)](https://github.com/davekellam "davekellam (9 commits)")[![plankmtl](https://avatars.githubusercontent.com/u/50153306?v=4)](https://github.com/plankmtl "plankmtl (1 commits)")

### Embed Badge

![Health badge](/badges/davekellam-phpcs-wp/health.svg)

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

###  Alternatives

[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356990.6k60](/packages/aura-di)

PHPackages © 2026

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