Psalm plugins

Plugins teach Psalm about the frameworks and libraries you use, or add checks Psalm doesn’t make on its own.

Listed by monthly downloads on Packagist. See Using plugins for how to install and configure them.

Works with

Plugins that don’t declare a Psalm version stay in the list.

psalm/plugin-phpunit

Psalm plugin for PHPUnit

1,446,004 79 Released 2 days ago

Included with Psalm 7. On automatically when composer.json requires phpunit/phpunit.

psalm/plugin-symfony

Psalm Plugin for Symfony

1,262,404 242 Released 1 day ago

Included with Psalm 7. On automatically when composer.json requires symfony/framework-bundle.

psalm/plugin-laravel

Psalm plugin for Laravel

1,232,222 350 Released 1 day ago

Included with Psalm 7. On automatically when composer.json requires laravel/framework or orchestra/testbench.

psalm/plugin-mockery

Psalm plugin for Mockery

1,047,701 12 Released 2 days ago

Included with Psalm 7. On automatically when composer.json requires mockery/mockery.

psalm/plugin-sabre-event

Psalm plugin for sabre/event

345,584 1 Released 2 days ago

Install
composer require --dev psalm/plugin-sabre-event
vendor/bin/psalm-plugin enable psalm/plugin-sabre-event

weirdan/doctrine-psalm-plugin

Stubs to let Psalm understand Doctrine better

295,672 86 Released 1 day ago

Included with Psalm 7. On automatically when your project uses the library it covers.

php-standard-library/psalm-plugin

Psalm plugin for the PHP Standard Library

42,690 25 Released 1 day ago

Install
composer require --dev php-standard-library/psalm-plugin
vendor/bin/psalm-plugin enable php-standard-library/psalm-plugin

humanmade/psalm-plugin-wordpress

WordPress stubs and plugin for Psalm static analysis.

29,690 84 Released 2 days ago

Install
composer require --dev humanmade/psalm-plugin-wordpress
vendor/bin/psalm-plugin enable humanmade/psalm-plugin-wordpress

orklah/psalm-insane-comparison

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

19,979 34 Released 15 days ago

Install
composer require --dev orklah/psalm-insane-comparison
vendor/bin/psalm-plugin enable orklah/psalm-insane-comparison

dq5studios/psalm-junit

Add junit report format to psalm

15,027 4 Released 15 days ago

Install
composer require --dev dq5studios/psalm-junit
vendor/bin/psalm-plugin enable dq5studios/psalm-junit

alies-dev/psalm-plugin-pest

Psalm plugin for Pest: types $this in test closures as the configured TestCase (with its traits and beforeEach() properties), resolves expectation and higher-order test chains, narrows types after expect() and accepts Pest's public API.

12,790 2 Released today

Install
composer require --dev alies-dev/psalm-plugin-pest
vendor/bin/psalm-plugin enable alies-dev/psalm-plugin-pest

orklah/psalm-strict-equality

Automatically change == into === when safe

9,030 7 Released 15 days ago

Install
composer require --dev orklah/psalm-strict-equality
vendor/bin/psalm-plugin enable orklah/psalm-strict-equality

orklah/psalm-strict-numeric-cast

Restrict the use of (int) and (float) to numeric-string only

3,524 8 No release since Dec 2023

Install
composer require --dev orklah/psalm-strict-numeric-cast
vendor/bin/psalm-plugin enable orklah/psalm-strict-numeric-cast

patchlevel/event-sourcing-psalm-plugin

psalm plugin for patchlevel/event-sourcing

3,252 5 Released Dec 2025 Up to Psalm 6

Install
composer require --dev patchlevel/event-sourcing-psalm-plugin
vendor/bin/psalm-plugin enable patchlevel/event-sourcing-psalm-plugin

orklah/psalm-not-empty

Automatically change empty() into a more explicit expression

2,827 28 Released 15 days ago

Install
composer require --dev orklah/psalm-not-empty
vendor/bin/psalm-plugin enable orklah/psalm-not-empty

open-dxp/psalm-plugin

Psalm knows where OpenDXP takes SQL and serialized data, and reports untrusted input that reaches it.

1,617 0 Released 17 days ago

Install
composer require --dev open-dxp/psalm-plugin
vendor/bin/psalm-plugin enable open-dxp/psalm-plugin

cspray/phinal

Enforce final on your classes!

1,518 13 Released Jun 2025 Up to Psalm 6

Install
composer require --dev cspray/phinal
vendor/bin/psalm-plugin enable cspray/phinal

marartner/psalm-no-empty

Do not allow usage of empty()

1,314 4 Released Sep 2025 Up to Psalm 6

Install
composer require --dev marartner/psalm-no-empty
vendor/bin/psalm-plugin enable marartner/psalm-no-empty

redaxo/psalm-plugin

Psalm Plugin for REDAXO

1,009 6 Released Jul 2026 Up to Psalm 6

Install
composer require --dev redaxo/psalm-plugin
vendor/bin/psalm-plugin enable redaxo/psalm-plugin

alexeyshockov/guzzle-psalm-plugin

Guzzle type information for Psalm

831 4 No release since Dec 2022 Up to Psalm 5

Install
composer require --dev alexeyshockov/guzzle-psalm-plugin
vendor/bin/psalm-plugin enable alexeyshockov/guzzle-psalm-plugin

marartner/psalm-strict-equality

Psalm plugin to enforce strict equality

700 4 Released Sep 2025 Up to Psalm 6

Install
composer require --dev marartner/psalm-strict-equality
vendor/bin/psalm-plugin enable marartner/psalm-strict-equality

orklah/psalm-strict-visibility

A Psalm plugin to detect calling private or protected method via proxy

396 8 No release since Mar 2021

Install
composer require --dev orklah/psalm-strict-visibility
vendor/bin/psalm-plugin enable orklah/psalm-strict-visibility

boesing/psalm-plugin-stringf

Psalm plugin to work with `sprintf`, `printf`, `sscanf` and `fscanf`.

377 12 No release since Dec 2022 Up to Psalm 5

Install
composer require --dev boesing/psalm-plugin-stringf
vendor/bin/psalm-plugin enable boesing/psalm-plugin-stringf

lordsimal/cakephp-psalm

A psalm-plugin for CakePHP

330 2 Released 8 days ago

Install
composer require --dev lordsimal/cakephp-psalm
vendor/bin/psalm-plugin enable lordsimal/cakephp-psalm

glomberg/wpdb-unsafe-methods

Psalm plugin to forbid calling provided `$wpdb` methods

202 0 Released Sep 2026 Up to Psalm 4

Install
composer require --dev glomberg/wpdb-unsafe-methods
vendor/bin/psalm-plugin enable glomberg/wpdb-unsafe-methods

topotru/psalm-conditional-final

Smart final/abstract class enforcement with attributes-based exclusions for Psalm. Perfect for Doctrine entities.

197 0 Released 18 days ago

Install
composer require --dev topotru/psalm-conditional-final
vendor/bin/psalm-plugin enable topotru/psalm-conditional-final

webgriffe/psalm-plugin-magento2

Psalm plugin that stops UnusedClass/UnusedMethod false positives on Magento 2 framework-instantiated classes (Controllers, Blocks, Observers, Cron jobs, Plugins, Setup Patches, Console Commands)

160 0 Released Aug 2026 Up to Psalm 6

Install
composer require --dev webgriffe/psalm-plugin-magento2
vendor/bin/psalm-plugin enable webgriffe/psalm-plugin-magento2

guuzen/psalm-enum-plugin

Reports attempts to create enum with a wrong case

154 0 Released 12 days ago

Install
composer require --dev guuzen/psalm-enum-plugin
vendor/bin/psalm-plugin enable guuzen/psalm-enum-plugin

fcpl/psalm-pimple-container-plugin

Psalm plugin to resolve return type for Pimple Container (ArrayAccess)

148 0 Released Feb 2025

Install
composer require --dev fcpl/psalm-pimple-container-plugin
vendor/bin/psalm-plugin enable fcpl/psalm-pimple-container-plugin

runtothefather/doctrine-mongodb-psalm-plugin

Stubs to let Psalm understand Doctrine MongoDb ODM better

145 7 Released Feb 2025 Up to Psalm 6

Install
composer require --dev runtothefather/doctrine-mongodb-psalm-plugin
vendor/bin/psalm-plugin enable runtothefather/doctrine-mongodb-psalm-plugin

bafs/psalm-plugin-typecov

Get nice type coverage reports

127 3 Released Oct 2026

Install
composer require --dev bafs/psalm-plugin-typecov
vendor/bin/psalm-plugin enable bafs/psalm-plugin-typecov

zadorin/bitrix-psalm-plugin

Psalm plugin for Bitrix Framework

107 7 No release since Feb 2022 Up to Psalm 4

Install
composer require --dev zadorin/bitrix-psalm-plugin
vendor/bin/psalm-plugin enable zadorin/bitrix-psalm-plugin

orklah/psalm-strict-types

Adds strict_types declaration when the file is provably safe

105 16 No release since Aug 2021 Up to Psalm 4

Install
composer require --dev orklah/psalm-strict-types
vendor/bin/psalm-plugin enable orklah/psalm-strict-types

kafkiansky/service-locator-interrupter

Psalm plugin for Laravel that interrupt service locator calls.

98 8 No release since Jun 2024

Install
composer require --dev kafkiansky/service-locator-interrupter
vendor/bin/psalm-plugin enable kafkiansky/service-locator-interrupter

magdv/psalm-plugin-yii2

Psalm plugin for a better typed yii2 application

74 0 Released Jul 2025 Up to Psalm 6

Install
composer require --dev magdv/psalm-plugin-yii2
vendor/bin/psalm-plugin enable magdv/psalm-plugin-yii2

interaction-design-foundation/psalm-laravel-nova

Psalm plugin for Laravel Nova

65 2 Released 1 day ago

Install
composer require --dev interaction-design-foundation/psalm-laravel-nova
vendor/bin/psalm-plugin enable interaction-design-foundation/psalm-laravel-nova

tooeo/psalm-plugin-jms

Checking JMS annotation

64 1 No release since Jul 2023 Up to Psalm 5

Install
composer require --dev tooeo/psalm-plugin-jms
vendor/bin/psalm-plugin enable tooeo/psalm-plugin-jms

typhoon/check-visibility-psalm-plugin

Ensures classes and functions have @api or @internal annotation

62 6 Released Mar 2025 Up to Psalm 6

Install
composer require --dev typhoon/check-visibility-psalm-plugin
vendor/bin/psalm-plugin enable typhoon/check-visibility-psalm-plugin

rasuvaeff/understudy-psalm

Psalm plugin for the understudy test double library: matcher-aware setup closures and misuse diagnostics

50 0 Released 1 day ago

Install
composer require --dev rasuvaeff/understudy-psalm
vendor/bin/psalm-plugin enable rasuvaeff/understudy-psalm

drupal-security/scanner

Psalm taint-analysis security scanner for Drupal — finds XSS, SQL injection, RCE, SSRF and insecure deserialization in modules, themes and core. A maintained, superset replacement for mortenson/psalm-plugin-drupal.

34 0 Released 2 days ago Up to Psalm 6

Install
composer require --dev drupal-security/scanner
vendor/bin/psalm-plugin enable drupal-security/scanner

hectorj/safe-php-psalm-plugin

vimeo/psalm plugin for thecodingmachine/safe

33 9 No release since May 2022 Up to Psalm 4

Install
composer require --dev hectorj/safe-php-psalm-plugin
vendor/bin/psalm-plugin enable hectorj/safe-php-psalm-plugin

h4ck3r31/psalm-static-plugin

Resolves static::class, self:class or parent::class references within PsalmPHP

28 0 No release since Sep 2022

Install
composer require --dev h4ck3r31/psalm-static-plugin
vendor/bin/psalm-plugin enable h4ck3r31/psalm-static-plugin

orklah/psalm-elvis-begone

Replace Elvis operator (?:) by null coalesce operator (??) when applicable

20 7 No release since Oct 2021 Up to Psalm 4

Install
composer require --dev orklah/psalm-elvis-begone
vendor/bin/psalm-plugin enable orklah/psalm-elvis-begone

orklah/psalm-type-setters-params

Use property type to fix param in the setter

19 4 No release since Sep 2021

Install
composer require --dev orklah/psalm-type-setters-params
vendor/bin/psalm-plugin enable orklah/psalm-type-setters-params

someniatko/result-type-psalm-plugin

Psalm plugin for someniatko/result-type library

16 0 Released Feb 2026

Install
composer require --dev someniatko/result-type-psalm-plugin
vendor/bin/psalm-plugin enable someniatko/result-type-psalm-plugin

orklah/psalm-use-constants

Fix the code to use existing constants instead of literals when available

15 5 No release since Sep 2021 Up to Psalm 4

Install
composer require --dev orklah/psalm-use-constants
vendor/bin/psalm-plugin enable orklah/psalm-use-constants

struggle-for-php/sfp-psalm-typed-local-variable-plugin

finding mismatch type assignment in function/method scope with psalm

15 16 No release since May 2021 Up to Psalm 4

Install
composer require --dev struggle-for-php/sfp-psalm-typed-local-variable-plugin
vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-typed-local-variable-plugin

the-toster/psalm-jms-serializer

Add return type typehints to deserialization methods

7 2 Released Aug 2026 Up to Psalm 6

Install
composer require --dev the-toster/psalm-jms-serializer
vendor/bin/psalm-plugin enable the-toster/psalm-jms-serializer

zolex/psalm-markdown-report

A Psalm plugin to write Markdown reports

7 2 Released May 2025 Up to Psalm 6

Install
composer require --dev zolex/psalm-markdown-report
vendor/bin/psalm-plugin enable zolex/psalm-markdown-report

kafkiansky/reduce-arguments

Psalm plugin that makes sure that you don't use too many arguments in functions and methods.

4 0 No release since Mar 2021 Up to Psalm 4

Install
composer require --dev kafkiansky/reduce-arguments
vendor/bin/psalm-plugin enable kafkiansky/reduce-arguments

typhoon/psalm-plugin

Typhoon Psalm Plugin

3 0 No release since Jan 2024 Up to Psalm 5

Install
composer require --dev typhoon/psalm-plugin
vendor/bin/psalm-plugin enable typhoon/psalm-plugin

h4ck3r31/psalm-issue-filter-plugin

Allows to filter/skip code issues based on code snippets within PsalmPHP

1 0 No release since Sep 2022

Install
composer require --dev h4ck3r31/psalm-issue-filter-plugin
vendor/bin/psalm-plugin enable h4ck3r31/psalm-issue-filter-plugin

aivchen/psalm-forbidden-plugin

Psalm plugin to forbid inheritance for classes

0 0 No release since Mar 2023 Up to Psalm 5

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

bocmah/psalm-reactphp-mysql-plugin

Psalm plugin for react/mysql

0 0 No release since Jan 2021 Up to Psalm 4

Install
composer require --dev bocmah/psalm-reactphp-mysql-plugin
vendor/bin/psalm-plugin enable bocmah/psalm-reactphp-mysql-plugin

bocmah/psalm-reactphp-promise-plugin

Psalm plugin for react/promise

0 2 No release since Jan 2021 Up to Psalm 4

Install
composer require --dev bocmah/psalm-reactphp-promise-plugin
vendor/bin/psalm-plugin enable bocmah/psalm-reactphp-promise-plugin

el7cosmos/codeception-psalm-plugin

A Codeception plugin for psalm

0 0 No release since Dec 2019 Up to Psalm 3

Install
composer require --dev el7cosmos/codeception-psalm-plugin
vendor/bin/psalm-plugin enable el7cosmos/codeception-psalm-plugin

jmvdevelop/psalm-glob-stubs-plugin

Allow stubs with glob in your project

0 1 No release since Dec 2021 Up to Psalm 4

Install
composer require --dev jmvdevelop/psalm-glob-stubs-plugin
vendor/bin/psalm-plugin enable jmvdevelop/psalm-glob-stubs-plugin

kafkiansky/forbid

A psalm plugin that finds and forbids code smells.

0 0 No release since Jun 2023 Up to Psalm 5

Install
composer require --dev kafkiansky/forbid
vendor/bin/psalm-plugin enable kafkiansky/forbid

klebann/moodle-psalm-plugin

A Psalm plugin to detect unsafe usage of $DB methods with SQL

0 0 No release since Jan 2021

Install
composer require --dev klebann/moodle-psalm-plugin
vendor/bin/psalm-plugin enable klebann/moodle-psalm-plugin

kvush/layer-violation-psalm-plugin

Detect layer dependency violation psalm-plugin

0 1 No release since Nov 2022 Up to Psalm 4

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

leighman/psalm-plugin-todo-by

Support @todo-by docblock annotations

0 1 No release since Sep 2021 Up to Psalm 4

Install
composer require --dev leighman/psalm-plugin-todo-by
vendor/bin/psalm-plugin enable leighman/psalm-plugin-todo-by

loot/spinoza

Package can generate documentation for service

0 0 No release since Feb 2021

Install
composer require --dev loot/spinoza
vendor/bin/psalm-plugin enable loot/spinoza

matthewbdaly/psalm-plugin-zendframework1

Psalm plugin for Zend Framework 1

0 4 No release since Aug 2024 Up to Psalm 4

Install
composer require --dev matthewbdaly/psalm-plugin-zendframework1
vendor/bin/psalm-plugin enable matthewbdaly/psalm-plugin-zendframework1

michaelcozzolino/psalm-html-report

A Psalm plugin to generate the output in a formatted html table.

0 1 No release since Apr 2024 Up to Psalm 5

Install
composer require --dev michaelcozzolino/psalm-html-report
vendor/bin/psalm-plugin enable michaelcozzolino/psalm-html-report

nederdirk/psalm-redis-stubs

Function signatures for the phpredis PECL package

0 1 No release since Aug 2021 Up to Psalm 4

Install
composer require --dev nederdirk/psalm-redis-stubs
vendor/bin/psalm-plugin enable nederdirk/psalm-redis-stubs

nexus-actors/psalm

Psalm plugin for Nexus actor system

0 0 Released Jul 2026 Up to Psalm 6

Install
composer require --dev nexus-actors/psalm
vendor/bin/psalm-plugin enable nexus-actors/psalm

php-regex/regex-psalm

Psalm plugin that types $matches from the pattern of preg_match() and preg_match_all(), and reports the patterns your target PHP refuses.

0 0 No stable release yet

Install
composer require --dev php-regex/regex-psalm
vendor/bin/psalm-plugin enable php-regex/regex-psalm

runtothefather/doctrine-psalm-plugin

Repository resolver to show psalm how to resolve getRepository method

0 6 No release since Feb 2020 Up to Psalm 3

Install
composer require --dev runtothefather/doctrine-psalm-plugin
vendor/bin/psalm-plugin enable runtothefather/doctrine-psalm-plugin

savinmikhail/symfony-translatable-exceptions

Make sure there's no hardcoded exception messages, only translated ones

0 0 Released Nov 2024 Up to Psalm 5

Install
composer require --dev savinmikhail/symfony-translatable-exceptions
vendor/bin/psalm-plugin enable savinmikhail/symfony-translatable-exceptions

sglitowitzsoci/soci-psalm-no-string-concatenation

SOCi Psalm Rule, no string concatenation

0 0 No release since Jun 2020 Up to Psalm 3

Install
composer require --dev sglitowitzsoci/soci-psalm-no-string-concatenation
vendor/bin/psalm-plugin enable sglitowitzsoci/soci-psalm-no-string-concatenation

shahruslan/psalm-plugin-bitrix

Psalm plugin for CMS Bitrix

0 0 No release since Jun 2024 Up to Psalm 5

Install
composer require --dev shahruslan/psalm-plugin-bitrix
vendor/bin/psalm-plugin enable shahruslan/psalm-plugin-bitrix

struggle-for-php/sfp-psalm-dont-operation-inside-constructor-plugin

Dont' operation inside constructor

0 2 No release since Mar 2023 Up to Psalm 5

Install
composer require --dev struggle-for-php/sfp-psalm-dont-operation-inside-constructor-plugin
vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-dont-operation-inside-constructor-plugin

struggle-for-php/sfp-psalm-psr-log-plugin

Stubs to let Psalm understand psr/log (PSR-3) strictly

0 0 No release since Mar 2023 Up to Psalm 5

Install
composer require --dev struggle-for-php/sfp-psalm-psr-log-plugin
vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-psr-log-plugin

typesetsh/dynamic-property-access-assume-type

Psalm plugin to support dynamic property access and object crates. Used by typeset.sh

0 0 No release since Jan 2024 Up to Psalm 5

Install
composer require --dev typesetsh/dynamic-property-access-assume-type
vendor/bin/psalm-plugin enable typesetsh/dynamic-property-access-assume-type

ubean/psalm-internal-extends

Psalm plugin that enforces @internal / @psalm-internal for traits (and similar) across namespaces.

0 0 Released Sep 2025

Install
composer require --dev ubean/psalm-internal-extends
vendor/bin/psalm-plugin enable ubean/psalm-internal-extends

Not listed: 14 marked abandoned on Packagist and 14 with no tagged release.