PHPackages                             ayeo/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ayeo/sniffer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ayeo/sniffer
============

1.0.9(6y ago)41.8k3MITPHP

Since Apr 14Pushed 6y ago3 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (12)Used By (0)

About
=====

[](#about)

This is the code sniffer that scans only recently modified lines. Under the hood it uses PHPCS and just filter report to lines changed within particular commit. I have built this simple tool to support my Continuous Integration. It may turns out usefull for others struggling with large legacy code base.

Installation
============

[](#installation)

```
composer require ayeo/sniffer

```

Usage
=====

[](#usage)

From your project root directory type:

```
./vendor/bin/sniff

```

```
./vendor/bin/sniff --standard=/path/to/ruleset.xml

```

Result (example)
================

[](#result-example)

```
File: application/modules/behat_api/src/V1/Model/Producer.php
| 4 | error	| Missing class doc comment
| 4 | error	| Opening brace of a class must be on the line after the definition
| 5 | error	| Spaces must be used to indent lines; tabs are not allowed
| 5 | error	| Line indented incorrectly; expected 4 spaces, found 1
| 8 | error	| Spaces must be used to indent lines; tabs are not allowed
| 8 | error	| Line indented incorrectly; expected 4 spaces, found 1
| 9 | error	| Spaces must be used to indent lines; tabs are not allowed
| 9 | error	| Line indented incorrectly; expected 4 spaces, found 1
| 9 | error	| Spaces must be used for alignment; tabs are not allowed

```

Issues
======

[](#issues)

Feel free to submit issues and enhancement requests.

Contributing
============

[](#contributing)

Everyone welcome

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~111 days

Recently: every ~147 days

Total

10

Last Release

2351d ago

### Community

Maintainers

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

---

Top Contributors

[![ayeo](https://avatars.githubusercontent.com/u/60191?v=4)](https://github.com/ayeo "ayeo (5 commits)")[![KonradKosowski](https://avatars.githubusercontent.com/u/17218923?v=4)](https://github.com/KonradKosowski "KonradKosowski (2 commits)")[![pbabilas](https://avatars.githubusercontent.com/u/901050?v=4)](https://github.com/pbabilas "pbabilas (1 commits)")

### Embed Badge

![Health badge](/badges/ayeo-sniffer/health.svg)

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

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

160437.4k57](/packages/humanmade-coding-standards)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

333.1M395](/packages/mediawiki-mediawiki-codesniffer)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39250.0k28](/packages/ec-europa-toolkit)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20276.8k20](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2227.1k6](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

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