PHPackages                             symplify/php7\_codesniffer - 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. symplify/php7\_codesniffer

Abandoned → [symplify/easy-coding-standard](/?search=symplify%2Feasy-coding-standard)Library[Testing &amp; Quality](/categories/testing)

symplify/php7\_codesniffer
==========================

PHP7\_CodeSniffer detects and fixes violations against your coding standard.

v0.6.1(9y ago)41991[2 issues](https://github.com/deprecated-packages/PHP7_CodeSniffer/issues)1MITPHPPHP ^7.0

Since Jul 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/deprecated-packages/PHP7_CodeSniffer)[ Packagist](https://packagist.org/packages/symplify/php7_codesniffer)[ RSS](/packages/symplify-php7-codesniffer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (8)Used By (1)

CodeSniffer in PHP 7, with simple usage everyone understands
============================================================

[](#codesniffer-in-php-7-with-simple-usage-everyone-understands)

This is essential development tool that ensures your code **remains clean and consistent**.

[![Build Status](https://camo.githubusercontent.com/7893408dbb6b563146416fae86aec8761740d16700c629c4417650686a6db6fd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53796d706c6966792f504850375f436f6465536e69666665722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Symplify/PHP7_CodeSniffer)[![Quality Score](https://camo.githubusercontent.com/ef4719d3b7d2bd56579d5bc5e306b9072416dc930b7f6538150348f543b1fb33/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f53796d706c6966792f504850375f436f6465536e69666665722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Symplify/PHP7_CodeSniffer)[![Code Coverage](https://camo.githubusercontent.com/b0c5b594f1a34343210a76aec5fd33c7c9d670f9755d58f549651c436a817e6f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f53796d706c6966792f504850375f436f6465536e69666665722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Symplify/PHP7_CodeSniffer)[![Downloads total](https://camo.githubusercontent.com/cbdfd87fa96b811ed766ca6a02a5ba8d2700876c04941d3c07a2b254f0b36e8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f706870375f636f6465736e69666665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/php7_codesniffer)[![Latest stable](https://camo.githubusercontent.com/e55a0e23375e2276322d8d57c60020eb564c7ad76364e3d769ac0c1b33e43511/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d706c6966792f706870375f636f6465736e69666665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/php7_codesniffer)

Install
-------

[](#install)

```
composer require symplify/php7_codesniffer --dev
```

Use
---

[](#use)

Run it from cli:

```
vendor/bin/php7cs src --standards=PSR2
```

To fix the issues just add `--fix`:

```
vendor/bin/php7cs src --standards=PSR2 --fix
```

### How to Use Specific Sniff Only?

[](#how-to-use-specific-sniff-only)

```
vendor/bin/php7cs src --sniffs=PSR2.Classes.ClassDeclaration
vendor/bin/php7cs src --sniffs=PSR2.Classes.ClassDeclaration,Zend.Files.ClosingTag
```

You can combine them as well:

```
vendor/bin/php7cs src --standards=PSR2 --sniffs=Zend.Files.ClosingTag
```

### Or Use Standard WITHOUT One Sniff?

[](#or-use-standard-without-one-sniff)

```
vendor/bin/php7cs src --standards=PSR2 --exclude-sniffs=PSR2.Namespaces.UseDeclaration
```

Testing
-------

[](#testing)

```
bin/php7cs src tests --standards=PSR2
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Rules are simple:

- new feature needs tests
- all tests must pass
- 1 feature per PR

I'd be happy to merge your feature then.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

7

Last Release

3532d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (106 commits)")

---

Tags

codesniffercoding-standarddeprecatedphp-code-snifferstandardsphpcsPHP7code sniffersymplify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplify-php7-codesniffer/health.svg)

```
[![Health](https://phpackages.com/badges/symplify-php7-codesniffer/health.svg)](https://phpackages.com/packages/symplify-php7-codesniffer)
```

###  Alternatives

[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M625](/packages/phpbench-phpbench)[wp-coding-standards/wpcs

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

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

21830.6M581](/packages/phpcompatibility-phpcompatibility-wp)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[phpcsstandards/phpcsextra

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

10224.3M44](/packages/phpcsstandards-phpcsextra)

PHPackages © 2026

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