PHPackages                             ghostwriter/example-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. [Testing &amp; Quality](/categories/testing)
4. /
5. ghostwriter/example-psalm-plugin

Abandoned → [ghostwriter/psalm-plugin](/?search=ghostwriter%2Fpsalm-plugin)Psalm-plugin[Testing &amp; Quality](/categories/testing)

ghostwriter/example-psalm-plugin
================================

Provides a plugin for Psalm

0.2.0(2y ago)15.3k[3 issues](https://github.com/ghostwriter/psalm-plugin/issues)BSD-3-ClausePHPPHP &gt;=8.1CI failing

Since Aug 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ghostwriter/psalm-plugin)[ Packagist](https://packagist.org/packages/ghostwriter/example-psalm-plugin)[ Docs](https://github.com/ghostwriter/psalm-plugin)[ GitHub Sponsors](https://github.com/sponsors/ghostwriter)[ RSS](/packages/ghostwriter-example-psalm-plugin/feed)WikiDiscussions 0.2.x Synced 1mo ago

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

Psalm Plugin
============

[](#psalm-plugin)

[![GitHub Sponsors](https://camo.githubusercontent.com/855a8f0a8e8bb22f5c86a80624f09a387b5c317ff52266f8e4116967930a101b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f67686f73747772697465723f6c6162656c3d53706f6e736f722b4067686f73747772697465722f7073616c6d2d706c7567696e266c6f676f3d4769744875622b53706f6e736f7273)](https://github.com/sponsors/ghostwriter)[![Automation](https://github.com/ghostwriter/psalm-plugin/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/psalm-plugin/actions/workflows/automation.yml)[![Supported PHP Version](https://camo.githubusercontent.com/68e9475d6d66f88219215b4fac86904f969cac6446b64291853209978f0856ba/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f67686f73747772697465722f7073616c6d2d706c7567696e3f636f6c6f723d383839326266)](https://www.php.net/supported-versions)[![Downloads](https://camo.githubusercontent.com/fc3cccb98d2e7ba57f98a73a3c57cd17ea442daef99f8e2160f12cd473300383/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f67686f73747772697465722f7073616c6d2d706c7567696e3f636f6c6f723d626c7565)](https://packagist.org/packages/ghostwriter/psalm-plugin)

Provides an **`ALL-IN-ONE`** plugin for [`Psalm`](https://github.com/vimeo/psalm)

Usage
-----

[](#usage)

```
composer require ghostwriter/psalm-plugin --dev
vendor/bin/psalm-plugin enable ghostwriter/psalm-plugin
```

```
vendor/bin/psalm
```

### Feature

[](#feature)

- [`PHP Standards Recommendations`](https://www.php-fig.org/psr/)
    - `Cache`
    - `Container`
        - Resolve return type for the `get` method.
    - `Clock`
    - `Event Dispatcher`
    - `Link`
    - `Log`
    - `Http`
- `PHPUnit`
    - Suppress `MissingThrowsDocblock` for classes that extending `TestCase`
    - Suppress `UnusedClass` for classes that extending `TestCase`
    - Suppress `PropertyNotSetInConstructor` for classes that extending `TestCase`
        - Using `assertPreConditions` method
        - Using `setUp` method
        - Using `setUpBeforeClass` method
        - Using `@before` docblock
        - Using `@beforeClass` docblock
        - Using `#[Before]` attribute
        - Using `#[BeforeClass]` attribute
        - Using `#[PreCondition]` attribute
- `Privatization`
    - `Finalize every class that has no children` (!isAbstract &amp;&amp; !isAnonymous)
    - `Finalize every class method on an abstract class if possible` (!isAbstract &amp;&amp; !isPrivate)
    - `Change protected class method to private if possible`
    - `Change protected class property to private if possible`
- `Strict Types`
- [**`[Request a Feature]`**](https://github.com/ghostwriter/psalm-plugin/issues/new)

### Changelog

[](#changelog)

Please see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.

### Security

[](#security)

If you discover any security-related issues, please use [`Security Advisories`](https://github.com/ghostwriter/psalm-plugin/security/advisories/new) instead of using the issue tracker.

### Credits

[](#credits)

- [Nathanael Esayeas](https://github.com/ghostwriter)
- [All Contributors](https://github.com/ghostwriter/psalm-plugin/contributors)

### License

[](#license)

The BSD-3-Clause. Please see [License File](./LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance40

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~242 days

Total

6

Last Release

44d ago

Major Versions

0.3.x-dev → 1.0.x-dev2026-04-04

PHP version history (2 changes)0.1.0PHP &gt;=8.1

0.2.x-devPHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dbb0131801cc451dad9917ab29aa823b25d7eebc9f3875a9d481d109bdb44ee?d=identicon)[ghostwriter](/maintainers/ghostwriter)

---

Top Contributors

[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (948 commits)")

---

Tags

ghostwriterphppsalmpsalm-pluginpsalm-plugin-testerdevstatic analysisghostwriterpsalmpsalm-plugin

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ghostwriter-example-psalm-plugin/health.svg)

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

###  Alternatives

[phpstan/phpstan

PHPStan - PHP Static Analysis Tool

13.9k341.8M29.6k](/packages/phpstan-phpstan)[staabm/phpstan-dba

2912.3M2](/packages/staabm-phpstan-dba)[staabm/phpstan-todo-by

1991.8M55](/packages/staabm-phpstan-todo-by)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[mrpunyapal/rector-pest

Rector upgrade rules for Pest - refactoring and best practices for Pest testing framework

4717.6k18](/packages/mrpunyapal-rector-pest)[nextras/orm-phpstan

PHPStan extension for Nextras Orm

11221.4k4](/packages/nextras-orm-phpstan)

PHPackages © 2026

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