PHPackages                             wc-vendors/wc-vendors-phpcs - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. wc-vendors/wc-vendors-phpcs

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

wc-vendors/wc-vendors-phpcs
===========================

08

Since Apr 11Pushed 3y agoCompare

[ Source](https://github.com/mahlamusa/wc-vendors-phpcs)[ Packagist](https://packagist.org/packages/wc-vendors/wc-vendors-phpcs)[ RSS](/packages/wc-vendors-wc-vendors-phpcs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

WC Vendors PHPCS Configuration
==============================

[](#wc-vendors-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)

You must add the repository to `composer.json`:

```
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/wcvendors/wc-vendors-phpcs.git"
        }
    ]
}
```

Install the library via Composer:

```
$ composer require --dev wcvendors/wc-vendors-phpcs:dev-main
```

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 `WCVendors-WordPress-Default` ruleset, and checks for syntax errors for PHP 8.0 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 `WCVendors-WordPress-Default` ruleset. In order to rectify this, place `.phpcs.xml.dist` at your project root:

```

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/496ad647ba61b4b8ff00583a3bf12388b1e73e68b3b60be7319c14ce641f38f0?d=identicon)[mahlamusa](/maintainers/mahlamusa)

---

Top Contributors

[![digitalchild](https://avatars.githubusercontent.com/u/909468?v=4)](https://github.com/digitalchild "digitalchild (11 commits)")

### Embed Badge

![Health badge](/badges/wc-vendors-wc-vendors-phpcs/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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