PHPackages                             varunsridharan/php-sniff - 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. varunsridharan/php-sniff

ActivePhpcodesniffer-standard

varunsridharan/php-sniff
========================

Collection of PHP Coding Standards &amp; Compatibility Rules Set for My Projects.

1.0(5y ago)11541GPL-3.0-or-later

Since May 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/varunsridharan/php-sniff)[ Packagist](https://packagist.org/packages/varunsridharan/php-sniff)[ Docs](https://github.com/varunsridharan/php-sniff/)[ Fund](https://paypal.me/varunsridharan23)[ Fund](https://www.buymeacoffee.com/varunsridharan)[ RSS](/packages/varunsridharan-php-sniff/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

PHP Sniff
=========

[](#php-sniff)

~ Collection of PHP Coding Standards &amp; Compatibility Rules Set for My Projects ~

⚙️Installation
--------------

[](#️installation)

The preferred way to install this extension is through [Composer](https://sva.onl/composer/).

To install **varunsridharan/PHP-Sniff**, simply:

```
$ composer require varunsridharan/php-sniff

```

### Required Packages

[](#required-packages)

```
composer require dealerdirect/phpcodesniffer-composer-installer
composer require phpcompatibility/php-compatibility
composer require phpcompatibility/phpcompatibility-wp
composer require wp-coding-standards/wpcs

```

---

`vs-php-compatibility`
----------------------

[](#vs-php-compatibility)

Contains rules related to PHP Compatibility

`vs-wp-php-coding-standards`
----------------------------

[](#vs-wp-php-coding-standards)

Contains rules related to WordPress coding standards

`vs-local-phpstorm`
-------------------

[](#vs-local-phpstorm)

This rule set is contains both `vs-php-compatibility` AND `vs-wp-php-coding-standards` rules to make it work in my local PHPStorm

---

🤝 Contributing
--------------

[](#-contributing)

If you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/php-sniff/issues/).

📜 License &amp; Conduct
-----------------------

[](#--license--conduct)

- [**GNU General Public License v3.0**](https://github.com/varunsridharan/php-sniff/blob/main/LICENSE) © [Varun Sridharan](website)
- [Code of Conduct](https://github.com/varunsridharan/.github/blob/master/CODE_OF_CONDUCT.md)

📣 Feedback
----------

[](#-feedback)

- ⭐ This repository if this project helped you! 😉
- Create An [🔧 Issue](https://github.com/varunsridharan/php-sniff/issues/) if you need help / found a bug

💰 Sponsor
---------

[](#-sponsor)

[I](https://sva.onl/twitter/) fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here](https://sva.onl/website/). If you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.

- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**](https://sva.onl/buymeacoffee)
- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**](https://sva.onl/buymeacoffee)
- 🔰 We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**](https://sva.onl/paypal)
- 🚀 Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**](https://sva.onl/paypal)

Connect &amp; Say 👋
-------------------

[](#connect--say-)

- **Follow** me on [👨‍💻 Github](https://sva.onl/github/) and stay updated on free and open-source software
- **Follow** me on [🐦 Twitter](https://sva.onl/twitter/) to get updates on my latest open source projects
- **Message** me on [📠 Telegram](https://sva.onl/telegram/)
- **Follow** my pet on [Instagram](https://www.instagram.com/sofythelabrador/) for some *dog-tastic* updates!

---

*Built With ♥ By [Varun Sridharan](https://sva.onl/twitter) [ ![](https://camo.githubusercontent.com/ac180da7a81f72a639abce09c4827e7bacfdd3b82586b657387a7f84430c7b7f/68747470733a2f2f63646e2e73766172756e2e6465762f666c61672d696e6469612e6a7067)](https://en.wikipedia.org/wiki/India)*

 [![](https://camo.githubusercontent.com/51991d58f40dac784a0c08b9c5c16c66c59ef5bdf083e3d49e4f617ef98e03ee/68747470733a2f2f63646e2e73766172756e2e6465762f636f64656973706f657472792e706e67)](https://camo.githubusercontent.com/51991d58f40dac784a0c08b9c5c16c66c59ef5bdf083e3d49e4f617ef98e03ee/68747470733a2f2f63646e2e73766172756e2e6465762f636f64656973706f657472792e706e67)

---

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~139 days

Recently: every ~172 days

Total

6

Last Release

1867d ago

Major Versions

0.9.2 → 1.02021-04-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/522dc9d037e4b0517ee9b76cd63d75a6331b0e578afa9b27fee84b02863ace80?d=identicon)[varunsridharan](/maintainers/varunsridharan)

---

Top Contributors

[![varunsridharan](https://avatars.githubusercontent.com/u/1884287?v=4)](https://github.com/varunsridharan "varunsridharan (25 commits)")

---

Tags

phpphp-code-snifferphp-codesnifferphp-compatibilityphp-standardphpcodesnifferphpcodesniffer-rulesphpcodesniffer-standardphpcompatibilityphpcompatibility-standardphpcsphpcs-standardwordpresswordpress-standardswp-pluginwp-themewpcsphpphpcswordpressPHP\_CodeSnifferphpcodesniffer-standardPHPCodeSnifferWordPress standardswpcsWP Pluginphpcompatibilitywp themephp-code-snifferphpcs-standardphpcodesniffer-rulesphpcompatibility-standardphp-compatibilityphp-standard

### Embed Badge

![Health badge](/badges/varunsridharan-php-sniff/health.svg)

```
[![Health](https://phpackages.com/badges/varunsridharan-php-sniff/health.svg)](https://phpackages.com/packages/varunsridharan-php-sniff)
```

###  Alternatives

[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M58](/packages/phpcsstandards-phpcsutils)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[inpsyde/php-coding-standards

PHP 7.4+ coding standards for Syde WordPress projects.

101163.9k45](/packages/inpsyde-php-coding-standards)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)

PHPackages © 2026

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