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

243,240 48

Psalm plugin for PHPUnit

psalm/plugin-symfony

179,913 146

Psalm Plugin for Symfony

weirdan/doctrine-psalm-plugin

79,994 63

Stubs to let Psalm understand Doctrine better

psalm/plugin-laravel

68,342 192

A Laravel plugin for Psalm

psalm/plugin-mockery

20,144 3

Psalm plugin for Mockery

php-standard-library/psalm-plugin

16,652 4

Psalm plugin for the PHP Standard Library

hectorj/safe-php-psalm-plugin

5,692 5

vimeo/psalm plugin for thecodingmachine/safe

orklah/psalm-insane-comparison

4,527 28

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

lctrs/psalm-psr-container-plugin

4,417 9

Let Psalm understand better psr11 containers

alexeyshockov/guzzle-psalm-plugin

2,550 1

Guzzle type information for Psalm

humanmade/psalm-plugin-wordpress

2,501 30

WordPress stubs and plugin for Psalm.

leighman/psalm-plugin-todo-by

1,686 0

Support @todo-by docblock annotations

dq5studios/psalm-junit

1,502 3

Add junit report format to psalm

orklah/psalm-strict-visibility

1,203 5

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

orklah/psalm-strict-types

1,180 11

Adds strict_types declaration when the file is provably safe

marartner/psalm-strict-equality

1,134 3

Psalm plugin to enforce strict equality

shoot/psalm-plugin

777 1

Provides static analysis for Shoot models and presenters

nederdirk/psalm-redis-stubs

681 0

Function signatures for the phpredis PECL package

orklah/psalm-strict-equality

658 4

Automatically change == into === when safe

marartner/psalm-no-empty

632 2

Do not allow usage of empty()

orklah/psalm-strict-numeric-cast

438 5

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

practically/psalm-plugin-yii2

418 1

Psalm plugin for a better typed yii2 application

boesing/psalm-plugin-stringf

265 1

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

mortenson/psalm-plugin-drupal

229 27

Psalm support for Drupal security analysis.

orklah/psalm-not-empty

201 17

Automatically change empty() into a more explicit expression

orklah/psalm-use-constants

194 4

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

kafkiansky/service-locator-interrupter

193 6

Psalm plugin for Laravel that interrupt service locator calls.

jmvdevelop/psalm-glob-stubs-plugin

136 1

Allow stubs with glob in your project

someniatko/iter-psalm-plugin

121 0

nikic/iter type information for Psalm

runtothefather/doctrine-psalm-plugin

100 5

Repository resolver to show psalm how to resolve getRepository method

tdgroot/magento2-psalm

92 0

Psalm plugin for Magento 2

klimick/psalm-show-type

76 2

Analog for psalm-trace but with pretty print

zerkms/symfony-psalm-plugin

56 2

Stubs for symfony interfaces

runtothefather/doctrine-mongodb-psalm-plugin

51 5

Stubs to let Psalm understand Doctrine MongoDb ODM better

matthewbdaly/psalm-plugin-zendframework1

19 1

Psalm plugin for Zend Framework 1

bocmah/psalm-reactphp-promise-plugin

7 2

Psalm plugin for react/promise

seferov/symfony-psalm-plugin

5 6

Psalm Plugin for Symfony

weirdan/psalm-plugin-skeleton

4 7

Template to create psalm-plugin projects from

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

3 0

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

fkupper/psalm-laravel-collections

3 8

Stubs to let Psalm understand Laravel Collections better

orklah/psalm-elvis-begone

2 5

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

zadorin/bitrix-psalm-plugin

2 3

Psalm plugin for Bitrix Framework

visma/magento2-psalm

1 3

Psalm plugin for Magento 2

samlitowitz/psalm-no-variables-in-strings

1 1

Do not allow variables in strings

samlitowitz/psalm-no-double-quoted-strings

1 1

Do not allow double-quoted strings

brokeyourbike/plugin-laravel

1 0

A Laravel 8 plugin for Psalm. PHP 8 only.

futurerockstars/nette-psalm-plugin

1 1

Psalm plugin for Nette Framework

klebann/moodle-psalm-plugin

1 0

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

psalm/plugin-sabre-event

0 0

Psalm plugin for sabre/event

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

0 16

finding mismatch type assignment in function/method scope with psalm

mopman/funserialize

0 1

Psalm plugin to add sinks for all file functions that accept streams.

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

kafkiansky/reduce-arguments

0 0

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

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

struggle-for-php/sfp-psalm-dont-operation-inside-constructor-plugin

0 0

Dont' operation inside constructor

orklah/psalm-strict-types-empty-class

0 0

Add declaration of strict_types in empty class

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

snowfall/phalcon-abstract-dispatcher

0 0

dispatcher with taint source for params

orklah/psalm-type-setters-params

0 3

Use property type to fix param in the setter

sglitowitzsoci/soci-psalm-no-string-concatenation

0 0

SOCi Psalm Rule, no string concatenation

patrickkusebauch/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

el7cosmos/codeception-psalm-plugin

0 0

A Codeception plugin for psalm

dance-engineer/psalm-knapsack-collections

0 0

Stub to let Psalm understand Knapsack Collections better

loot/spinoza

0 0

Package can generate documentation for service