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

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

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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

1151d ago

### Community

Maintainers

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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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