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

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

meom/phpcs-composer
===================

09.7k[1 issues](https://github.com/MEOM/phpcs-composer/issues)[1 PRs](https://github.com/MEOM/phpcs-composer/pulls)4

Since Feb 27Pushed 2y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (4)

MEOM PHPCS ruleset
==================

[](#meom-phpcs-ruleset)

This is a standalone composer package for Custom [WPCS](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) and [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) rulesets.

Requirements
------------

[](#requirements)

- PHP 7+.
- [Composer](https://getcomposer.org/) for managing PHP dependencies.

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

[](#installation)

Use Composer to install the package.

```
composer require --dev meom/phpcs-composer:dev-main
```

Usage
-----

[](#usage)

Lint your PHP files with the following command:

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

Or give path to lint theme folder, for example:

```
./vendor/bin/phpcs htdocs/wp-content/themes/theme-name
```

Note that by default warning are not displayed. You can change that with `--severity` flag like this:

```
./vendor/bin/phpcs --severity=1 htdocs/wp-content/themes/theme-name
```

Fixing issues using PHPCBF command
----------------------------------

[](#fixing-issues-using-phpcbf-command)

Some of the issue can be fixed using `phpcbf` command:

```
./vendor/bin/phpcbf .
```

Or give path to fix theme folder, for example:

```
./vendor/bin/phpcbf htdocs/wp-content/themes/theme-name
```

Note that by default warnings are not fixed. You can fix warnings also with `--severity` flag like this:

```
./vendor/bin/phpcbf --severity=1 htdocs/wp-content/themes/theme-name
```

More info about [fixing PHPCS errors automatically](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically).

IDE Integration
---------------

[](#ide-integration)

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

```

```

Note this is already added in Kala Stack.

### VS Code

[](#vs-code)

If you don't have PHP codesniffer installed globally, you might need to

1. Create folder `.vscode` (in the root of the project).
2. Add file `settings.json` in the folder.
3. Add the following content in the file.

```
{
    "phpcs.executablePath": "./vendor/bin/phpcs"
}
```

P.S. Windows is looking for file `./vendor/bin/phpcs.bat`. If that's not generated automatically in `./vendor/bin/` for some reason, test path `./vendor/squizlabs/php_codesniffer/bin/phpcs`.

`.bat` files should be in that folder.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity26

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/d9db54267e986685a36b1d46b3858514e2458cd7768d7cee62d74070caa451b2?d=identicon)[MEOM](/maintainers/MEOM)

---

Top Contributors

[![samikeijonen](https://avatars.githubusercontent.com/u/1820415?v=4)](https://github.com/samikeijonen "samikeijonen (28 commits)")

---

Tags

phpcsphpcs-standardwordpress

### Embed Badge

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

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

###  Alternatives

[daveross/functional-programming-utils

Functional Programming utilities for PHP 5.4+

225.2k](/packages/daveross-functional-programming-utils)

PHPackages © 2026

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