๐ŸŒ US-Proxy
>

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,856,518 80 Released 6 days ago

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

psalm/plugin-laravel

Psalm plugin for Laravel

1,768,433 352 Released 4 days ago

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

psalm/plugin-symfony

Psalm Plugin for Symfony

1,722,996 242 Released 6 days ago

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

psalm/plugin-mockery

Psalm plugin for Mockery

1,493,962 12 Released 6 days ago

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

weirdan/doctrine-psalm-plugin

Stubs to let Psalm understand Doctrine better

772,275 86 Released 6 days ago

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

psalm/plugin-sabre-event

Psalm plugin for sabre/event

278,333 1 Released 6 days ago

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

php-standard-library/psalm-plugin

Psalm plugin for the PHP Standard Library

42,164 25 Released 12 days ago

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

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.

33,272 2 Released 11 days ago

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

humanmade/psalm-plugin-wordpress

WordPress stubs and plugin for Psalm static analysis.

30,721 84 Released 14 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,654 34 Released 26 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

14,928 4 Released 26 days ago

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

orklah/psalm-strict-equality

Automatically change == into === when safe

9,706 7 Released 26 days ago

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

patchlevel/event-sourcing-psalm-plugin

psalm plugin for patchlevel/event-sourcing

5,963 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-strict-numeric-cast

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

3,554 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

open-dxp/psalm-plugin

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

2,024 0 Released 28 days ago

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

orklah/psalm-not-empty

Automatically change empty() into a more explicit expression

1,966 28 Released 26 days ago

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

cspray/phinal

Enforce final on your classes!

1,459 13 Released Jun 2025 Up to Psalm 6

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

redaxo/psalm-plugin

Psalm Plugin for REDAXO

1,402 6 Released Jul 2026 Up to Psalm 6

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

marartner/psalm-no-empty

Do not allow usage of empty()

1,377 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

alexeyshockov/guzzle-psalm-plugin

Guzzle type information for Psalm

929 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

879 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

spaze/psalm-plugin-nette

Psalm plugin for Nette: tells the unused code detection what Nette, Nette Tester and the DI container call

781 0 Released 6 days ago

Install
composer require --dev spaze/psalm-plugin-nette
vendor/bin/psalm-plugin enable spaze/psalm-plugin-nette

orklah/psalm-strict-visibility

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

503 8 No release since Mar 2021

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

lordsimal/cakephp-psalm

A psalm-plugin for CakePHP

336 2 Released 19 days ago

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

boesing/psalm-plugin-stringf

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

328 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

topotru/psalm-conditional-final

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

228 0 Released 29 days ago

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

runtothefather/doctrine-mongodb-psalm-plugin

Stubs to let Psalm understand Doctrine MongoDb ODM better

198 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

fcpl/psalm-pimple-container-plugin

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

190 0 Released Feb 2025

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

glomberg/wpdb-unsafe-methods

Psalm plugin to forbid calling provided `$wpdb` methods

170 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

guuzen/psalm-enum-plugin

Reports attempts to create enum with a wrong case

155 0 Released 23 days ago

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

bafs/psalm-plugin-typecov

Get nice type coverage reports

147 3 Released Oct 2026

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

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)

131 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

zadorin/bitrix-psalm-plugin

Psalm plugin for Bitrix Framework

125 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

tooeo/psalm-plugin-jms

Checking JMS annotation

124 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

orklah/psalm-strict-types

Adds strict_types declaration when the file is provably safe

96 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

magdv/psalm-plugin-yii2

Psalm plugin for a better typed yii2 application

79 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

75 2 Released 12 days ago

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

kafkiansky/service-locator-interrupter

Psalm plugin for Laravel that interrupt service locator calls.

72 8 No release since Jun 2024

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

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.

58 0 Released 13 days ago Up to Psalm 6

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

rasuvaeff/understudy-psalm

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

46 0 Released 11 days ago

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

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

29 0 No release since Sep 2022

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

typhoon/check-visibility-psalm-plugin

Ensures classes and functions have @api or @internal annotation

15 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

someniatko/result-type-psalm-plugin

Psalm plugin for someniatko/result-type library

10 0 Released Feb 2026

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

the-toster/psalm-jms-serializer

Add return type typehints to deserialization methods

5 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

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

facile-it/psalm-psr-log-plugin

Psalm plugin for psr/log (PSR-3)

2 0 Released 6 days ago

Install
composer require --dev facile-it/psalm-psr-log-plugin
vendor/bin/psalm-plugin enable facile-it/psalm-psr-log-plugin

h4ck3r31/psalm-issue-filter-plugin

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

2 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

zolex/psalm-markdown-report

A Psalm plugin to write Markdown reports

2 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

matthewbdaly/psalm-plugin-zendframework1

Psalm plugin for Zend Framework 1

1 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

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

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

orklah/psalm-elvis-begone

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

0 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

0 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

orklah/psalm-use-constants

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

0 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

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 No release since 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

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

finding mismatch type assignment in function/method scope with psalm

0 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

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.