PHPackages                             awyiss/phpcs-sniffs - 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. awyiss/phpcs-sniffs

ActivePhpcodesniffer-standard

awyiss/phpcs-sniffs
===================

Custom PHP\_CodeSniffer standard and sniffs for Awyiss projects

v0.5(today)08↑300%1MITPHPPHP &gt;=8.4

Since Aug 17Pushed todayCompare

[ Source](https://github.com/fabian-mcfly/awyiss-phpcs-sniffs)[ Packagist](https://packagist.org/packages/awyiss/phpcs-sniffs)[ RSS](/packages/awyiss-phpcs-sniffs/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (6)Used By (0)

awyiss/phpcs-sniffs
===================

[](#awyissphpcs-sniffs)

PHPCS standard with custom rules for Awyiss projects.

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

[](#installation)

```
composer require awyiss/phpcs-sniffs
```

Usage
-----

[](#usage)

```
vendor/bin/phpcs --standard=Awyiss src
```

What the sniffs do
------------------

[](#what-the-sniffs-do)

### Arrays

[](#arrays)

- `NoInlineCommentedArrayItemSniff`: Comments cannot be on the same line as an array item. The comment must be on its own line.

### Classes

[](#classes)

- `ClassMemberSpacingSniff`: Enforces blank lines between class members. Same groups have no blank line, different groups have two blank lines, methods have one or two blank lines.

### Commenting

[](#commenting)

- `SeeUsesTagSpacingSniff`: Requires exactly one space after `@see` and `@uses`.
- `VariableCommentSniff`: Validates property docblocks. Special case: missing `@var` is allowed when `@inheritdoc` is present.

### Functions

[](#functions)

- `ArrowFunctionDeclarationSniff`: Validates arrow function (`fn`) formatting. No space before `(`, exactly one space around `=>`, and clean indentation for wrapped lines.

### Operators

[](#operators)

- `MethodChainingSniff`: Validates method chains. Long or multiline chains must be wrapped and indented consistently, including semicolon placement.

### WhiteSpace

[](#whitespace)

- `ArrayUnionIndentationSniff`: Aligns the closing `]` correctly in specific multiline array union cases.
- `ConstantDeclarationSpacingSniff`: In typed `const` declarations, requires exactly one space between the type and constant name.
- `SemicolonSpacingSniff`: Disallows whitespace before `;`. Also applies rules for method chains and multiline string concatenation.
- `SingleArgumentNotMultilineSniff`: Prevents simple single argument calls from being split across multiple lines without need.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

5

Last Release

0d ago

PHP version history (2 changes)v0.1PHP &gt;=8.1

v0.3PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8e07842db8a63628cdefad8653c3e14b0aefa29f8f248f186cb881e6ce66cd6?d=identicon)[fabian-mcfly](/maintainers/fabian-mcfly)

---

Top Contributors

[![fabian-mcfly](https://avatars.githubusercontent.com/u/13197057?v=4)](https://github.com/fabian-mcfly "fabian-mcfly (5 commits)")

---

Tags

phpcsPHP\_CodeSniffersniffsCoding Standard

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awyiss-phpcs-sniffs/health.svg)

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

###  Alternatives

[slevomat/coding-standard

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

1.5k137.8M2.5k](/packages/slevomat-coding-standard)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

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

Human Made Coding Standards

161450.0k66](/packages/humanmade-coding-standards)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6342.7M106](/packages/phpcsstandards-phpcsutils)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[phpcsstandards/phpcsextra

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

10431.8M84](/packages/phpcsstandards-phpcsextra)

PHPackages © 2026

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