PHPackages                             brzuchal/stop-the-war - 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. brzuchal/stop-the-war

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

brzuchal/stop-the-war
=====================

PHP\_CodeSniffer rule adding non-collapsable comment calling out to stop wars

v1.0.0(4y ago)14MITPHPPHP ^7.4 || ^8.0

Since Mar 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/brzuchal/stop-the-war)[ Packagist](https://packagist.org/packages/brzuchal/stop-the-war)[ RSS](/packages/brzuchal-stop-the-war/feed)WikiDiscussions 1.x Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

StopTheWar
==========

[](#stopthewar)

[![Tests](https://github.com/brzuchal/stop-the-war/actions/workflows/continous-integration.yml/badge.svg)](https://github.com/brzuchal/stop-the-war/actions/workflows/continous-integration.yml/badge.svg)

---

A message to Russian 🇷🇺 people
------------------------------

[](#a-message-to-russian--people)

If you currently live in Russia, please read [this message](./ToRussianPeople.md).

Purpose
-------

[](#purpose)

A Stop The War sniff adding non-collapsable comment calling to stop the wars in source code files.

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

Install
-------

[](#install)

```
composer require brzuchal/stop-the-war
```

Usage
-----

[](#usage)

Basic usage just adds general `#StopTheWar` comment, a minimum setup requirement is to include `StopTheWar` rule, as follows:

```

```

Results in adding stop war comment with no additional text, as follows:

```
// Do not be silent! #StopWar
class MyService
{
}
```

However, if you'd like to promote any kind of extended comment define rule property called `commentExtension`, as for eg.:

```

```

Results in adding comment in front of every class, interface, trait, enum as follows:

```
// Do not be silent! #StopWar 🇺🇦 #StandWithUkraine #StopPutin
class MyService
{
}
```

---

License
-------

[](#license)

MIT License

Copyright (c) 2022 Michał Marcin Brzuchalski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2

Last Release

1579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce3143c657246081b652b3f2a6b370c8fcb58ca66c15d52f7557bfecbc38f9df?d=identicon)[brzuchal](/maintainers/brzuchal)

---

Top Contributors

[![brzuchal](https://avatars.githubusercontent.com/u/3149753?v=4)](https://github.com/brzuchal "brzuchal (7 commits)")

---

Tags

standwithukrainestopputinnowstopthewar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brzuchal-stop-the-war/health.svg)

```
[![Health](https://phpackages.com/badges/brzuchal-stop-the-war/health.svg)](https://phpackages.com/packages/brzuchal-stop-the-war)
```

###  Alternatives

[slevomat/coding-standard

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

1.5k134.0M2.2k](/packages/slevomat-coding-standard)[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[drupal/coder

Coder is a library to review Drupal code.

3045.9M572](/packages/drupal-coder)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)

PHPackages © 2026

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