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 1mo ago

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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

1270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/142ff1adc754d4ac91597e5b10372b3a2da73f6a3c4aac9404001eb8dfaf5ad1?d=identicon)[kvush](/maintainers/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

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M914](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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