PHPackages                             kvush/layer-violation-psalm-plugin - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. kvush/layer-violation-psalm-plugin

ActivePsalm-plugin[Debugging &amp; Profiling](/categories/debugging)

kvush/layer-violation-psalm-plugin
==================================

Detect layer dependency violation psalm-plugin

v0.2.1(3y ago)113MITPHPPHP &gt;=7.1

Since Dec 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kvush/layer-violation-psalm-plugin)[ Packagist](https://packagist.org/packages/kvush/layer-violation-psalm-plugin)[ RSS](/packages/kvush-layer-violation-psalm-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Layer Violation Psalm Plugin
============================

[](#layer-violation-psalm-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/cdc3d3d71e6d95c090159dc1b8641fdf77ff10919721046c27834ff9769c3dbf/687474703a2f2f706f7365722e707567782e6f72672f6b767573682f6c617965722d76696f6c6174696f6e2d7073616c6d2d706c7567696e2f76)](https://packagist.org/packages/kvush/layer-violation-psalm-plugin) [![Total Downloads](https://camo.githubusercontent.com/20037e393d3394baaeca7e62765b05381b550b8e543ae0e5131a34e75f8eff31/687474703a2f2f706f7365722e707567782e6f72672f6b767573682f6c617965722d76696f6c6174696f6e2d7073616c6d2d706c7567696e2f646f776e6c6f616473)](https://packagist.org/packages/kvush/layer-violation-psalm-plugin) [![Latest Unstable Version](https://camo.githubusercontent.com/e4ccd58276e497c6b8c4ef564780ffbb50052d47d926afe1b1fdfe2ff1d61e6d/687474703a2f2f706f7365722e707567782e6f72672f6b767573682f6c617965722d76696f6c6174696f6e2d7073616c6d2d706c7567696e2f762f756e737461626c65)](https://packagist.org/packages/kvush/layer-violation-psalm-plugin) [![License](https://camo.githubusercontent.com/93aa2a2900f7f0e91c28282a007b9026ced23d799fd5f21b6b82728f0a5b5030/687474703a2f2f706f7365722e707567782e6f72672f6b767573682f6c617965722d76696f6c6174696f6e2d7073616c6d2d706c7567696e2f6c6963656e7365)](https://packagist.org/packages/kvush/layer-violation-psalm-plugin) [![PHP Version Require](https://camo.githubusercontent.com/68ea699c1bac52d97a631925f4493c566ba98deb2b44b2f3875bc31307c862dd/687474703a2f2f706f7365722e707567782e6f72672f6b767573682f6c617965722d76696f6c6174696f6e2d7073616c6d2d706c7567696e2f726571756972652f706870)](https://packagist.org/packages/kvush/layer-violation-psalm-plugin)

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

[](#installation)

```
composer require --dev kvush/layer-violation-psalm-plugin
vendor/bin/psalm-plugin enable kvush/layer-violation-psalm-plugin

```

Features
--------

[](#features)

- Detects layers dependency violation based on provided config
- Configuration can be split by multiple xml files
- Ability to configure nested namespaces or keep strict match

Configuration
-------------

[](#configuration)

### Simple configuration

[](#simple-configuration)

```

```

### Extracted to arbitrary named xml files

[](#extracted-to-arbitrary-named-xml-files)

```

```

#### For Example Kernel class could be handled by `root.xml`

[](#for-example-kernel-class-could-be-handled-by-rootxml)

```

```

#### Some Common rules in `common.xml`

[](#some-common-rules-in-commonxml)

```

```

#### Split context rules `contextA.xml`

[](#split-context-rules-contextaxml)

```

```

`contextB.xml`

```

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

1325d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12866266?v=4)[Ilya Shashilov](/maintainers/kvush)[@kvush](https://github.com/kvush)

---

Top Contributors

[![kvush](https://avatars.githubusercontent.com/u/12866266?v=4)](https://github.com/kvush "kvush (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kvush-layer-violation-psalm-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/kvush-layer-violation-psalm-plugin/health.svg)](https://phpackages.com/packages/kvush-layer-violation-psalm-plugin)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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