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

186,629 46

Psalm plugin for PHPUnit

psalm/plugin-symfony

142,486 125

Psalm Plugin for Symfony

psalm/plugin-laravel

58,035 169

A Laravel plugin for Psalm

weirdan/doctrine-psalm-plugin

49,809 61

Stubs to let Psalm understand Doctrine better

psalm/plugin-mockery

15,632 3

Psalm plugin for Mockery

php-standard-library/psalm-plugin

5,941 3

Psalm plugin for the PHP Standard Library

orklah/psalm-insane-comparison

4,973 19

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

hectorj/safe-php-psalm-plugin

3,594 3

vimeo/psalm plugin for thecodingmachine/safe

lctrs/psalm-psr-container-plugin

3,471 9

Let Psalm understand better psr11 containers

orklah/psalm-strict-visibility

1,965 5

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

marartner/psalm-no-empty

1,773 0

Do not allow usage of empty()

marartner/psalm-strict-equality

1,714 1

Psalm plugin to enforce strict equality

alexeyshockov/guzzle-psalm-plugin

1,424 1

Guzzle type information for Psalm

dq5studios/psalm-junit

823 3

Add junit report format to psalm

orklah/psalm-strict-types

569 10

Adds strict_types declaration when the file is provably safe

shoot/psalm-plugin

526 1

Provides static analysis for Shoot models and presenters

humanmade/psalm-plugin-wordpress

351 25

WordPress stubs and plugin for Psalm.

runtothefather/doctrine-psalm-plugin

307 5

Repository resolver to show psalm how to resolve getRepository method

orklah/psalm-strict-numeric-cast

239 4

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

klimick/psalm-show-type

145 2

Analog for psalm-trace but with pretty print

tdgroot/magento2-psalm

144 0

Psalm plugin for Magento 2

someniatko/iter-psalm-plugin

98 0

nikic/iter type information for Psalm

kafkiansky/service-locator-interrupter

80 4

Psalm plugin for Laravel that interrupt service locator calls.

zerkms/symfony-psalm-plugin

78 2

Stubs for symfony interfaces

runtothefather/doctrine-mongodb-psalm-plugin

72 5

Stubs to let Psalm understand Doctrine MongoDb ODM better

orklah/psalm-strict-equality

62 2

Automatically change == into === when safe

matthewbdaly/psalm-plugin-zendframework1

51 1

Psalm plugin for Zend Framework 1

samlitowitz/psalm-no-variables-in-strings

24 1

Do not allow variables in strings

samlitowitz/psalm-no-double-quoted-strings

24 1

Do not allow double-quoted strings

mortenson/psalm-plugin-drupal

16 22

Psalm support for Drupal security analysis.

fkupper/psalm-laravel-collections

13 8

Stubs to let Psalm understand Laravel Collections better

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

7 16

finding mismatch type assignment in function/method scope with psalm

seferov/symfony-psalm-plugin

7 6

Psalm Plugin for Symfony

weirdan/psalm-plugin-skeleton

5 6

Template to create psalm-plugin projects from

orklah/psalm-strict-types-empty-class

4 0

Add declaration of strict_types in empty class

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

3 0

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

el7cosmos/codeception-psalm-plugin

3 0

A Codeception plugin for psalm

kafkiansky/reduce-arguments

2 0

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

orklah/psalm-use-constants

2 2

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

jmvdevelop/psalm-glob-stubs-plugin

1 1

Allow stubs with glob in your project

klebann/moodle-psalm-plugin

1 0

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

weirdan/psalm-doctrine-collections

1 50

Stubs to let Psalm understand Doctrine better

patrickkusebauch/nette-psalm-plugin

1 1

Psalm plugin for Nette Framework

psalm/plugin-sabre-event

0 0

Psalm plugin for sabre/event

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

bocmah/psalm-reactphp-mysql-plugin

0 0

Psalm plugin for react/mysql

visma/magento2-psalm

0 3

Psalm plugin for Magento 2

loot/spinoza

0 0

Package can generate documentation for service

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

orklah/psalm-type-setters-params

0 2

Use property type to fix param in the setter

bocmah/psalm-reactphp-promise-plugin

0 0

Psalm plugin for react/promise

sglitowitzsoci/soci-psalm-no-string-concatenation

0 0

SOCi Psalm Rule, no string concatenation

futurerockstars/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

dance-engineer/psalm-knapsack-collections

0 0

Stub to let Psalm understand Knapsack Collections better

orklah/psalm-not-empty

0 10

Automatically change empty() into a more explicit expression