Psalm plugins

These plugins allow Psalm to work great with popular packages like Laravel, PHPUnit, and Symfony.

Have a look at Psalm’s documentation to find out how to install and use them.

psalm/plugin-phpunit

183,884 44

Psalm plugin for PHPUnit

psalm/plugin-symfony

147,715 117

Psalm Plugin for Symfony

psalm/plugin-laravel

45,611 164

A Laravel plugin for Psalm

weirdan/doctrine-psalm-plugin

44,087 61

Stubs to let Psalm understand Doctrine better

psalm/plugin-mockery

18,925 3

Psalm plugin for Mockery

orklah/psalm-insane-comparison

3,349 17

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

hectorj/safe-php-psalm-plugin

2,839 2

vimeo/psalm plugin for thecodingmachine/safe

lctrs/psalm-psr-container-plugin

2,263 8

Let Psalm understand better psr11 containers

php-standard-library/psalm-plugin

2,027 2

Psalm plugin for the PHP Standard Library

alexeyshockov/guzzle-psalm-plugin

1,132 1

Guzzle type information for Psalm

dq5studios/psalm-junit

724 3

Add junit report format to psalm

marartner/psalm-no-empty

707 0

Do not allow usage of empty()

runtothefather/doctrine-psalm-plugin

699 4

Repository resolver to show psalm how to resolve getRepository method

orklah/psalm-strict-visibility

644 5

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

marartner/psalm-strict-equality

636 1

Psalm plugin to enforce strict equality

shoot/psalm-plugin

533 1

Provides static analysis for Shoot models and presenters

humanmade/psalm-plugin-wordpress

496 23

WordPress stubs and plugin for Psalm.

orklah/psalm-strict-types

421 9

Adds strict_types declaration when the file is provably safe

orklah/psalm-strict-numeric-cast

178 2

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

someniatko/iter-psalm-plugin

97 0

nikic/iter type information for Psalm

kafkiansky/service-locator-interrupter

94 4

Psalm plugin for Laravel that interrupt service locator calls.

klimick/psalm-show-type

94 2

Analog for psalm-trace but with pretty print

runtothefather/doctrine-mongodb-psalm-plugin

38 5

Stubs to let Psalm understand Doctrine MongoDb ODM better

samlitowitz/psalm-no-double-quoted-strings

36 1

Do not allow double-quoted strings

fkupper/psalm-laravel-collections

34 8

Stubs to let Psalm understand Laravel Collections better

samlitowitz/psalm-no-variables-in-strings

30 1

Do not allow variables in strings

orklah/psalm-strict-equality

17 2

Automatically change == into === when safe

zerkms/symfony-psalm-plugin

12 2

Stubs for symfony interfaces

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

11 15

finding mismatch type assignment in function/method scope with psalm

seferov/symfony-psalm-plugin

9 6

Psalm Plugin for Symfony

weirdan/psalm-plugin-skeleton

7 6

Template to create psalm-plugin projects from

mortenson/psalm-plugin-drupal

7 17

Psalm support for Drupal security analysis.

matthewbdaly/psalm-plugin-zendframework1

5 1

Psalm plugin for Zend Framework 1

jmvdevelop/psalm-glob-stubs-plugin

4 1

Allow stubs with glob in your project

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

4 0

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

tdgroot/magento2-psalm

3 0

Psalm plugin for Magento 2

futurerockstars/nette-psalm-plugin

2 1

Psalm plugin for Nette Framework

dance-engineer/psalm-knapsack-collections

2 0

Stub to let Psalm understand Knapsack Collections better

klebann/moodle-psalm-plugin

1 0

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

weirdan/psalm-doctrine-collections

0 50

Stubs to let Psalm understand Doctrine better

bocmah/psalm-reactphp-mysql-plugin

0 0

Psalm plugin for react/mysql

visma/magento2-psalm

0 3

Psalm plugin for Magento 2

bocmah/psalm-reactphp-promise-plugin

0 0

Psalm plugin for react/promise

orklah/psalm-strict-types-empty-class

0 0

Add declaration of strict_types in empty class

sglitowitzsoci/soci-psalm-no-string-concatenation

0 0

SOCi Psalm Rule, no string concatenation

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

orklah/psalm-not-empty

0 10

Automatically change empty() into a more explicit expression

el7cosmos/codeception-psalm-plugin

0 0

A Codeception plugin for psalm

psalm/plugin-sabre-event

0 0

Psalm plugin for sabre/event

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

kafkiansky/reduce-arguments

0 0

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

patrickkusebauch/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

orklah/psalm-use-constants

0 2

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

orklah/psalm-type-setters-params

0 1

Use property type to fix param in the setter

loot/spinoza

0 0

Package can generate documentation for service