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,706,052 78 Released 1 day ago

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

psalm/plugin-laravel

Psalm plugin for Laravel

1,556,306 350 Released today

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

psalm/plugin-symfony

Psalm Plugin for Symfony

1,553,761 242 Released today

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

psalm/plugin-mockery

Psalm plugin for Mockery

1,306,284 12 Released 7 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

540,731 86 Released today

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

psalm/plugin-sabre-event

Psalm plugin for sabre/event

360,187 1 Released 7 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

43,861 25 Released 6 days 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.

30,319 84 Released 7 days ago

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

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.

19,871 2 Released 5 days ago

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

orklah/psalm-insane-comparison

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

19,539 34 Released 20 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,463 4 Released 20 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,418 7 Released 20 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,372 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,584 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

orklah/psalm-not-empty

Automatically change empty() into a more explicit expression

2,389 28 Released 20 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,830 0 Released 22 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,419 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,350 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,341 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

872 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

822 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

468 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

338 2 Released 13 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`.

334 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

runtothefather/doctrine-mongodb-psalm-plugin

Stubs to let Psalm understand Doctrine MongoDb ODM better

228 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

topotru/psalm-conditional-final

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

225 0 Released 23 days ago

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

glomberg/wpdb-unsafe-methods

Psalm plugin to forbid calling provided `$wpdb` methods

180 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

171 0 Released 17 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)

166 0 Released Feb 2025

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

bafs/psalm-plugin-typecov

Get nice type coverage reports

156 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)

142 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

orklah/psalm-strict-types

Adds strict_types declaration when the file is provably safe

123 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

zadorin/bitrix-psalm-plugin

Psalm plugin for Bitrix Framework

117 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

100 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

kafkiansky/service-locator-interrupter

Psalm plugin for Laravel that interrupt service locator calls.

82