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.
Psalm plugin for PHPUnit
Included with Psalm 7.
On automatically when composer.json requires phpunit/phpunit.
Psalm plugin for Laravel
Included with Psalm 7.
On automatically when composer.json requires laravel/framework or orchestra/testbench.
Psalm Plugin for Symfony
Included with Psalm 7.
On automatically when composer.json requires symfony/framework-bundle.
Psalm plugin for Mockery
Included with Psalm 7.
On automatically when composer.json requires mockery/mockery.
Stubs to let Psalm understand Doctrine better
Included with Psalm 7. On automatically when your project uses the library it covers.
Psalm plugin for sabre/event
composer require --dev psalm/plugin-sabre-event
vendor/bin/psalm-plugin enable psalm/plugin-sabre-event
Psalm plugin for the PHP Standard Library
composer require --dev php-standard-library/psalm-plugin
vendor/bin/psalm-plugin enable php-standard-library/psalm-plugin
WordPress stubs and plugin for Psalm static analysis.
composer require --dev humanmade/psalm-plugin-wordpress
vendor/bin/psalm-plugin enable humanmade/psalm-plugin-wordpress
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.
composer require --dev alies-dev/psalm-plugin-pest
vendor/bin/psalm-plugin enable alies-dev/psalm-plugin-pest
Detects possible insane comparison ("string" == 0) to help migrate to PHP8
composer require --dev orklah/psalm-insane-comparison
vendor/bin/psalm-plugin enable orklah/psalm-insane-comparison
Add junit report format to psalm
composer require --dev dq5studios/psalm-junit
vendor/bin/psalm-plugin enable dq5studios/psalm-junit
Automatically change == into === when safe
composer require --dev orklah/psalm-strict-equality
vendor/bin/psalm-plugin enable orklah/psalm-strict-equality
psalm plugin for patchlevel/event-sourcing
composer require --dev patchlevel/event-sourcing-psalm-plugin
vendor/bin/psalm-plugin enable patchlevel/event-sourcing-psalm-plugin
Restrict the use of (int) and (float) to numeric-string only
composer require --dev orklah/psalm-strict-numeric-cast
vendor/bin/psalm-plugin enable orklah/psalm-strict-numeric-cast
Automatically change empty() into a more explicit expression
composer require --dev orklah/psalm-not-empty
vendor/bin/psalm-plugin enable orklah/psalm-not-empty
Psalm knows where OpenDXP takes SQL and serialized data, and reports untrusted input that reaches it.
composer require --dev open-dxp/psalm-plugin
vendor/bin/psalm-plugin enable open-dxp/psalm-plugin
Enforce final on your classes!
composer require --dev cspray/phinal
vendor/bin/psalm-plugin enable cspray/phinal
Do not allow usage of empty()
composer require --dev marartner/psalm-no-empty
vendor/bin/psalm-plugin enable marartner/psalm-no-empty
Psalm Plugin for REDAXO
composer require --dev redaxo/psalm-plugin
vendor/bin/psalm-plugin enable redaxo/psalm-plugin
Guzzle type information for Psalm
composer require --dev alexeyshockov/guzzle-psalm-plugin
vendor/bin/psalm-plugin enable alexeyshockov/guzzle-psalm-plugin
Psalm plugin to enforce strict equality
composer require --dev marartner/psalm-strict-equality
vendor/bin/psalm-plugin enable marartner/psalm-strict-equality
A Psalm plugin to detect calling private or protected method via proxy
composer require --dev orklah/psalm-strict-visibility
vendor/bin/psalm-plugin enable orklah/psalm-strict-visibility
A psalm-plugin for CakePHP
composer require --dev lordsimal/cakephp-psalm
vendor/bin/psalm-plugin enable lordsimal/cakephp-psalm
Psalm plugin to work with `sprintf`, `printf`, `sscanf` and `fscanf`.
composer require --dev boesing/psalm-plugin-stringf
vendor/bin/psalm-plugin enable boesing/psalm-plugin-stringf
Stubs to let Psalm understand Doctrine MongoDb ODM better
composer require --dev runtothefather/doctrine-mongodb-psalm-plugin
vendor/bin/psalm-plugin enable runtothefather/doctrine-mongodb-psalm-plugin
Smart final/abstract class enforcement with attributes-based exclusions for Psalm. Perfect for Doctrine entities.
composer require --dev topotru/psalm-conditional-final
vendor/bin/psalm-plugin enable topotru/psalm-conditional-final
Psalm plugin to forbid calling provided `$wpdb` methods
composer require --dev glomberg/wpdb-unsafe-methods
vendor/bin/psalm-plugin enable glomberg/wpdb-unsafe-methods
Reports attempts to create enum with a wrong case
composer require --dev guuzen/psalm-enum-plugin
vendor/bin/psalm-plugin enable guuzen/psalm-enum-plugin
Psalm plugin to resolve return type for Pimple Container (ArrayAccess)
composer require --dev fcpl/psalm-pimple-container-plugin
vendor/bin/psalm-plugin enable fcpl/psalm-pimple-container-plugin
Get nice type coverage reports
composer require --dev bafs/psalm-plugin-typecov
vendor/bin/psalm-plugin enable bafs/psalm-plugin-typecov
Psalm plugin that stops UnusedClass/UnusedMethod false positives on Magento 2 framework-instantiated classes (Controllers, Blocks, Observers, Cron jobs, Plugins, Setup Patches, Console Commands)
composer require --dev webgriffe/psalm-plugin-magento2
vendor/bin/psalm-plugin enable webgriffe/psalm-plugin-magento2
Adds strict_types declaration when the file is provably safe
composer require --dev orklah/psalm-strict-types
vendor/bin/psalm-plugin enable orklah/psalm-strict-types
Psalm plugin for Bitrix Framework
composer require --dev zadorin/bitrix-psalm-plugin
vendor/bin/psalm-plugin enable zadorin/bitrix-psalm-plugin
Checking JMS annotation
composer require --dev tooeo/psalm-plugin-jms
vendor/bin/psalm-plugin enable tooeo/psalm-plugin-jms
Psalm plugin for Laravel that interrupt service locator calls.