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

ActivePhpcodesniffer-standard

bigwing/phpcs-composer
======================

1381

Since Aug 7Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

BigWing PHPCS Configuration
===========================

[](#bigwing-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.

[![Support Level](https://camo.githubusercontent.com/5896abb912e1012699c5dfc3006466fd8e7fe2dcd4623ca7cf4afd15583b4c37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737570706f72742d696e7465726e616c2d626c75652e737667)](#support-level) [![MIT License](https://camo.githubusercontent.com/f9248c3904b5f843cddc1bb27dc9624b8c05cc8a33a5a189a870f1a76ea30d2d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62696777696e672f70687063732d636f6d706f7365722e737667)](https://github.com/bigwing/phpcs-composer/blob/master/LICENSE)

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

[](#installation)

Install the library via Composer:

```
$ composer require --dev bigwing/phpcs-composer:dev-master
```

That's it!

Usage
-----

[](#usage)

Lint your PHP files with the following command:

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

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

```
	"scripts": {
		"lint": [
			"phpcs . --standard=BigWing-WP"
		],
	}
```

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 `BigWing-WP` ruleset, and checks for syntax errors for PHP 7.2 or higher.

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

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

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

```

```

Support Level
-------------

[](#support-level)

**Internal:** BigWing is working on this for internal projects, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.

Thanks and Credits
------------------

[](#thanks-and-credits)

- 10up for their [PHPCS ruleset](https://github.com/10up/phpcs-composer) that this is based on.
- The [WordPress Coding Standards contributors](https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors) for laying the groundwork for standardized code sniffing in WordPress.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/33bd74ddb8fa9500d34b6b55ee433d8868d614564d6267066a9fa18867b77573?d=identicon)[morganestes](/maintainers/morganestes)

---

Top Contributors

[![tlovett1](https://avatars.githubusercontent.com/u/1844351?v=4)](https://github.com/tlovett1 "tlovett1 (22 commits)")[![morganestes](https://avatars.githubusercontent.com/u/110755?v=4)](https://github.com/morganestes "morganestes (12 commits)")[![ChaosExAnima](https://avatars.githubusercontent.com/u/1760168?v=4)](https://github.com/ChaosExAnima "ChaosExAnima (6 commits)")[![samikeijonen](https://avatars.githubusercontent.com/u/1820415?v=4)](https://github.com/samikeijonen "samikeijonen (5 commits)")[![sudar](https://avatars.githubusercontent.com/u/103148?v=4)](https://github.com/sudar "sudar (3 commits)")[![jeffpaul](https://avatars.githubusercontent.com/u/2818133?v=4)](https://github.com/jeffpaul "jeffpaul (3 commits)")[![mmcachran](https://avatars.githubusercontent.com/u/375068?v=4)](https://github.com/mmcachran "mmcachran (1 commits)")[![jrfnl](https://avatars.githubusercontent.com/u/663378?v=4)](https://github.com/jrfnl "jrfnl (1 commits)")[![barryceelen](https://avatars.githubusercontent.com/u/4179791?v=4)](https://github.com/barryceelen "barryceelen (1 commits)")

---

Tags

composeridelintphpcsphpcs-standardrulesetwordpresswordpress-development

### Embed Badge

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

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

PHPackages © 2026

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