PHPackages                             aivchen/psalm-forbidden-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. aivchen/psalm-forbidden-plugin

ActivePsalm-plugin[Validation &amp; Sanitization](/categories/validation)

aivchen/psalm-forbidden-plugin
==============================

Psalm plugin to forbid inheritance for classes

0.1.3(3y ago)0950[1 PRs](https://github.com/aivchen/psalm-forbidden-plugin/pulls)MITPHP

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aivchen/psalm-forbidden-plugin)[ Packagist](https://packagist.org/packages/aivchen/psalm-forbidden-plugin)[ RSS](/packages/aivchen-psalm-forbidden-plugin/feed)WikiDiscussions master Synced today

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

Psalm Forbidden Plugin
======================

[](#psalm-forbidden-plugin)

[![Integrate](https://github.com/aivchen/psalm-forbidden-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/aivchen/psalm-forbidden-plugin/actions/workflows/ci.yml/badge.svg)

### Installation

[](#installation)

```
composer require --dev aivchen/psalm-forbidden-plugin
vendor/bin/psalm --init
vendor/bin/psalm-plugin enable aivchen/psalm-forbidden-plugin

```

### Features

[](#features)

- Forbids inheritance of any classes defined in the configuration (see below)

### Configuration

[](#configuration)

If you follow the installation instructions, the psalm-plugin command will add this plugin configuration to the `psalm.xml` configuration file.

```

```

To be able to forbid inheritance of some class add it to the config. Example:

```

    BadNamespace\BadClass

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 89.5% 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

4

Last Release

1207d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77209676?v=4)[groonya](/maintainers/groonya)[@groonya](https://github.com/groonya)

---

Top Contributors

[![aivchen](https://avatars.githubusercontent.com/u/4580308?v=4)](https://github.com/aivchen "aivchen (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/aivchen-psalm-forbidden-plugin/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[orklah/psalm-insane-comparison

Detects possible insane comparison ("string" == 0) to help migrate to PHP8

351.6M2](/packages/orklah-psalm-insane-comparison)[cspray/phinal

Enforce final on your classes!

14318.8k4](/packages/cspray-phinal)[orklah/psalm-not-empty

Automatically change empty() into a more explicit expression

2857.4k1](/packages/orklah-psalm-not-empty)[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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