PHPackages                             kmcculloch/phpspec-code-sniffer - 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. kmcculloch/phpspec-code-sniffer

ActiveLibrary[Testing &amp; Quality](/categories/testing)

kmcculloch/phpspec-code-sniffer
===============================

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

v1.1.0(8y ago)13452GPL-3.0+

Since Nov 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kmcculloch/phpspec-code-sniffer)[ Packagist](https://packagist.org/packages/kmcculloch/phpspec-code-sniffer)[ RSS](/packages/kmcculloch-phpspec-code-sniffer/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

phpspec-code-sniffer
====================

[](#phpspec-code-sniffer)

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

Kevin McCulloch

Purpose
-------

[](#purpose)

I wrote this module so that I could easily toggle a phpcs standard that won't throw errors for PHPSpec's non-camel-case it\_does\_something() function naming convention. All it does is apply PSR1 and PSR2 while ignoring the camel-case function naming rule. Stupidly simple, really. I'd be open to expanding the ruleset if others find this useful.

Global Installation
-------------------

[](#global-installation)

If you have phpcs installed globally (which generally involves running `composer global require squizlabs/php_codesniffer:~2.0` and adding `~/.composer/vendor/bin` to your `$PATH`), you can add this ruleset like so:

```
composer global require kmcculloch/phpspec-code-sniffer:1.x-dev

# Tell phpcs where to find the ruleset:
phpcs --config-set installed_paths ~/.composer/vendor/kmcculloch/phpspec-code-sniffer/

# Run the following and confirm that you can see "PHPSpec" in the list of
# installed standards:
phpcs -i

# Sniff your code:
phpcs --standard=PHPSpec ~/path/to/MyClassSpec.php

```

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

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 ~534 days

Total

2

Last Release

3031d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1548096?v=4)[Kevin McCulloch](/maintainers/kmcculloch)[@kmcculloch](https://github.com/kmcculloch)

---

Top Contributors

[![kmcculloch](https://avatars.githubusercontent.com/u/1548096?v=4)](https://github.com/kmcculloch "kmcculloch (3 commits)")

---

Tags

standardsPHP\_CodeSniffercodesnifferphpspec

### Embed Badge

![Health badge](/badges/kmcculloch-phpspec-code-sniffer/health.svg)

```
[![Health](https://phpackages.com/badges/kmcculloch-phpspec-code-sniffer/health.svg)](https://phpackages.com/packages/kmcculloch-phpspec-code-sniffer)
```

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

601180.6M2.7k](/packages/dealerdirect-phpcodesniffer-composer-installer)[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k137.8M2.4k](/packages/slevomat-coding-standard)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.8k49.8M2.5k](/packages/wp-coding-standards-wpcs)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10431.8M84](/packages/phpcsstandards-phpcsextra)[pragmarx/laravelcs

PHP\_CodeSniffer custom Sniff for Laravel coding standard

235113.2k2](/packages/pragmarx-laravelcs)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

205.1M38](/packages/acquia-coding-standards)

PHPackages © 2026

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