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

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

10up/phpcs-composer
===================

10up's PHP CodeSniffer Ruleset

3.0.1(6mo ago)521.5M↑33.5%7[8 issues](https://github.com/10up/phpcs-composer/issues)[2 PRs](https://github.com/10up/phpcs-composer/pulls)20MITPHPCI passing

Since Jun 26Pushed 5mo ago81 watchersCompare

[ Source](https://github.com/10up/phpcs-composer)[ Packagist](https://packagist.org/packages/10up/phpcs-composer)[ RSS](/packages/10up-phpcs-composer/feed)WikiDiscussions trunk Synced 3d ago

READMEChangelog (3)Dependencies (4)Versions (22)Used By (20)

10up PHPCS Configuration
========================

[](#10up-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/cdb2c85978e766f367f2c6c66df441ea5f2843d2e3568d4113c2210e992d3ce2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737570706f72742d6163746976652d677265656e2e737667)](#support-level) [![MIT License](https://camo.githubusercontent.com/204c7e584a6530121f31ec0f2960e267321f00fd04909c850d772697e662a816/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f313075702f70687063732d636f6d706f7365722e737667)](https://github.com/10up/phpcs-composer/blob/master/LICENSE)

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

[](#installation)

Install the library via Composer:

```
$ composer require --dev 10up/phpcs-composer:"^3.0"
```

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 ."
		],
	}
```

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

```

```

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

[](#support-level)

**Active:** 10up is actively working on this, 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.

Like what you see?
------------------

[](#like-what-you-see)

[![](https://camo.githubusercontent.com/5ec5223fa6fe20a5ca00d8d768bd7ee91e93f67c9d7a06e575c87e3ed1d00263/68747470733a2f2f313075702e636f6d2f75706c6f6164732f323031362f31302f313075702d4769746875622d42616e6e65722e706e67)](http://10up.com/contact/)

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity53

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity72

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~136 days

Recently: every ~189 days

Total

7

Last Release

207d ago

Major Versions

2.0.1 → 3.0.0-RC12023-09-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3358927?v=4)[10up](/maintainers/10up)[@10up](https://github.com/10up)

---

Top Contributors

[![darylldoyle](https://avatars.githubusercontent.com/u/968731?v=4)](https://github.com/darylldoyle "darylldoyle (27 commits)")[![tlovett1](https://avatars.githubusercontent.com/u/1844351?v=4)](https://github.com/tlovett1 "tlovett1 (27 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)")[![claytoncollie](https://avatars.githubusercontent.com/u/4236538?v=4)](https://github.com/claytoncollie "claytoncollie (4 commits)")[![peterwilsoncc](https://avatars.githubusercontent.com/u/519727?v=4)](https://github.com/peterwilsoncc "peterwilsoncc (4 commits)")[![jeffpaul](https://avatars.githubusercontent.com/u/2818133?v=4)](https://github.com/jeffpaul "jeffpaul (4 commits)")[![sudar](https://avatars.githubusercontent.com/u/103148?v=4)](https://github.com/sudar "sudar (3 commits)")[![pabamato](https://avatars.githubusercontent.com/u/4009928?v=4)](https://github.com/pabamato "pabamato (3 commits)")[![joesnellpdx](https://avatars.githubusercontent.com/u/1504070?v=4)](https://github.com/joesnellpdx "joesnellpdx (1 commits)")[![felipeelia](https://avatars.githubusercontent.com/u/184628?v=4)](https://github.com/felipeelia "felipeelia (1 commits)")[![gthayer](https://avatars.githubusercontent.com/u/6576646?v=4)](https://github.com/gthayer "gthayer (1 commits)")[![barryceelen](https://avatars.githubusercontent.com/u/4179791?v=4)](https://github.com/barryceelen "barryceelen (1 commits)")[![jrfnl](https://avatars.githubusercontent.com/u/663378?v=4)](https://github.com/jrfnl "jrfnl (1 commits)")[![mmcachran](https://avatars.githubusercontent.com/u/375068?v=4)](https://github.com/mmcachran "mmcachran (1 commits)")

### Embed Badge

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

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

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M34](/packages/yoast-yoastcs)[axepress/wp-graphql-cs

PHP\_CodeSniffer rules (sniffs) for the WPGraphQL ecosystem.

1176.0k9](/packages/axepress-wp-graphql-cs)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1790.9k6](/packages/infinum-eightshift-coding-standards)

PHPackages © 2026

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