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

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

plank/wp-phpcs-composer
=======================

022.9k↓47.2%1[2 issues](https://github.com/plank/wp-phpcs-composer/issues)

Since Jul 21Pushed 2y ago10 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Plank PHPCS Configuration
=========================

[](#plank-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 plank/wp-phpcs-composer:master
```

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 `Plank-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 `Plank-Default` ruleset. In order to rectify this, place `.phpcs.xml.dist` at your project root:

```

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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/108450?v=4)[Plank](/maintainers/Plank)[@plank](https://github.com/plank)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[beebmx/kirby-env

Enable env variables to Kirby

2037.9k2](/packages/beebmx-kirby-env)[aschmelyun/size

Simple PHP helper to convert bytes to different sizes

471.2k](/packages/aschmelyun-size)[bigelephant/string

A string helper task with built in classes to easily add to Laravel 4

121.7k](/packages/bigelephant-string)

PHPackages © 2026

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