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

198,532 46

Psalm plugin for PHPUnit

psalm/plugin-symfony

147,900 133

Psalm Plugin for Symfony

psalm/plugin-laravel

63,463 182

A Laravel plugin for Psalm

weirdan/doctrine-psalm-plugin

45,496 61

Stubs to let Psalm understand Doctrine better

psalm/plugin-mockery

15,632 3

Psalm plugin for Mockery

php-standard-library/psalm-plugin

9,977 3

Psalm plugin for the PHP Standard Library

hectorj/safe-php-psalm-plugin

5,242 3

vimeo/psalm plugin for thecodingmachine/safe

orklah/psalm-insane-comparison

4,843 19

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

lctrs/psalm-psr-container-plugin

3,168 9

Let Psalm understand better psr11 containers

alexeyshockov/guzzle-psalm-plugin

2,035 1

Guzzle type information for Psalm

orklah/psalm-strict-visibility

1,470 5

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

humanmade/psalm-plugin-wordpress

1,296 27

WordPress stubs and plugin for Psalm.

dq5studios/psalm-junit

924 3

Add junit report format to psalm

marartner/psalm-no-empty

890 0

Do not allow usage of empty()

marartner/psalm-strict-equality

802 1

Psalm plugin to enforce strict equality

orklah/psalm-strict-types

790 11

Adds strict_types declaration when the file is provably safe

shoot/psalm-plugin

597 1

Provides static analysis for Shoot models and presenters

runtothefather/doctrine-psalm-plugin

337 5

Repository resolver to show psalm how to resolve getRepository method

klimick/psalm-show-type

329 2

Analog for psalm-trace but with pretty print

samlitowitz/psalm-no-variables-in-strings

318 1

Do not allow variables in strings

samlitowitz/psalm-no-double-quoted-strings

305 1

Do not allow double-quoted strings

orklah/psalm-strict-numeric-cast

267 4

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

kafkiansky/service-locator-interrupter

232 4

Psalm plugin for Laravel that interrupt service locator calls.

tdgroot/magento2-psalm

134 0

Psalm plugin for Magento 2

someniatko/iter-psalm-plugin

96 0

nikic/iter type information for Psalm

orklah/psalm-strict-equality

88 3

Automatically change == into === when safe

brokeyourbike/plugin-laravel

87 0

A Laravel 8 plugin for Psalm. PHP 8 only.

zerkms/symfony-psalm-plugin

74 2

Stubs for symfony interfaces

mortenson/psalm-plugin-drupal

62 23

Psalm support for Drupal security analysis.

practically/psalm-plugin-yii2

42 0

Psalm plugin for a better typed yii2 application

mopman/funserialize

38 1

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

weirdan/psalm-plugin-skeleton

15 6

Template to create psalm-plugin projects from

matthewbdaly/psalm-plugin-zendframework1

15 1

Psalm plugin for Zend Framework 1

runtothefather/doctrine-mongodb-psalm-plugin

13 5

Stubs to let Psalm understand Doctrine MongoDb ODM better

orklah/psalm-not-empty

12 15

Automatically change empty() into a more explicit expression

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

9 0

Dont' operation inside constructor

seferov/symfony-psalm-plugin

8 6

Psalm Plugin for Symfony

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

2 0

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

fkupper/psalm-laravel-collections

2 8

Stubs to let Psalm understand Laravel Collections better

orklah/psalm-use-constants

2 3

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

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

1 16

finding mismatch type assignment in function/method scope with psalm

orklah/psalm-type-setters-params

1 2

Use property type to fix param in the setter

klebann/moodle-psalm-plugin

0 0

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

boesing/psalm-plugin-stringf

0 0

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

zadorin/bitrix-psalm-plugin

0 1

Psalm plugin for Bitrix Framework

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

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

snowfall/phalcon-abstract-dispatcher

0 0

dispatcher with taint source for params

kafkiansky/reduce-arguments

0 0

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

dance-engineer/psalm-knapsack-collections

0 0

Stub to let Psalm understand Knapsack Collections better

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

loot/spinoza

0 0

Package can generate documentation for service

futurerockstars/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

jmvdevelop/psalm-glob-stubs-plugin

0 1

Allow stubs with glob in your project

psalm/plugin-sabre-event

0 0

Psalm plugin for sabre/event

orklah/psalm-strict-types-empty-class

0 0

Add declaration of strict_types in empty class