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

281,117 63

Psalm plugin for PHPUnit

psalm/plugin-symfony

223,757 192

Psalm Plugin for Symfony

weirdan/doctrine-psalm-plugin

117,003 77

Stubs to let Psalm understand Doctrine better

psalm/plugin-laravel

69,488 243

A Laravel plugin for Psalm

psalm/plugin-mockery

60,678 8

Psalm plugin for Mockery

php-standard-library/psalm-plugin

27,837 15

Psalm plugin for the PHP Standard Library

orklah/psalm-insane-comparison

20,488 31

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

humanmade/psalm-plugin-wordpress

19,654 50

WordPress stubs and plugin for Psalm.

lctrs/psalm-psr-container-plugin

11,830 14

Let Psalm understand better psr11 containers

shoot/psalm-plugin

5,784 1

Provides static analysis for Shoot models and presenters

boesing/psalm-plugin-stringf

4,747 8

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

orklah/psalm-strict-visibility

4,584 7

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

orklah/psalm-strict-equality

3,997 7

Automatically change == into === when safe

orklah/psalm-not-empty

3,468 24

Automatically change empty() into a more explicit expression

orklah/psalm-strict-numeric-cast

3,402 6

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

leighman/psalm-plugin-todo-by

3,325 0

Support @todo-by docblock annotations

redaxo/psalm-plugin

3,206 6

Psalm Plugin for REDAXO

dq5studios/psalm-junit

3,182 4

Add junit report format to psalm

orklah/psalm-strict-types

2,761 15

Adds strict_types declaration when the file is provably safe

the-toster/psalm-jms-serializer

2,349 1

Add return type typehints to deserialization methods

alexeyshockov/guzzle-psalm-plugin

1,993 1

Guzzle type information for Psalm

practically/psalm-plugin-yii2

1,531 8

Psalm plugin for a better typed yii2 application

patchlevel/event-sourcing-psalm-plugin

971 4

psalm plugin for patchlevel/event-sourcing

cspray/phinal

956 12

Enforce final on your classes!

marartner/psalm-strict-equality

723 3

Psalm plugin to enforce strict equality

mortenson/psalm-plugin-drupal

580 38

Psalm support for Drupal security analysis.

kafkiansky/service-locator-interrupter

376 6

Psalm plugin for Laravel that interrupt service locator calls.

tdgroot/magento2-psalm

235 2

Psalm plugin for Magento 2

hectorj/safe-php-psalm-plugin

229 8

vimeo/psalm plugin for thecodingmachine/safe

someniatko/iter-psalm-plugin

227 0

nikic/iter type information for Psalm

lordsimal/cakephp-psalm

191 2

A psalm-plugin for CakePHP

runtothefather/doctrine-mongodb-psalm-plugin

185 6

Stubs to let Psalm understand Doctrine MongoDb ODM better

marartner/psalm-no-empty

167 3

Do not allow usage of empty()

kafkiansky/reduce-arguments

140 0

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

klimick/psalm-show-type

116 2

Analog for psalm-trace but with pretty print

zadorin/bitrix-psalm-plugin

109 6

Psalm plugin for Bitrix Framework

orklah/psalm-elvis-begone

95 7

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

orklah/psalm-use-constants

60 5

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

matthewbdaly/psalm-plugin-zendframework1

42 2

Psalm plugin for Zend Framework 1

brokeyourbike/plugin-laravel

18 2

A Laravel 8 plugin for Psalm. PHP 8 only.

bocmah/psalm-reactphp-promise-plugin

11 2

Psalm plugin for react/promise

jmvdevelop/psalm-glob-stubs-plugin

6 1

Allow stubs with glob in your project

kvush/layer-violation-psalm-plugin

6 0

Detect layer dependency violation psalm-plugin

weirdan/psalm-plugin-skeleton

4 10

Template to create psalm-plugin projects from

futurerockstars/nette-psalm-plugin

1 2

Psalm plugin for Nette Framework

h4ck3r31/psalm-issue-filter-plugin

1 0

Allows to filter/skip code issues based on code snippets within PsalmPHP

h4ck3r31/psalm-static-plugin

1 0

Resolves static::class, self:class or parent::class references within PsalmPHP

nederdirk/psalm-redis-stubs

1 1

Function signatures for the phpredis PECL package

typesetsh/dynamic-property-access-assume-type

1 0

Psalm plugin to support dynamic property access and object crates. Used by typeset.sh

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

bafs/psalm-plugin-typecov

0 0

Get nice type coverage reports

bocmah/psalm-reactphp-mysql-plugin

0 0

Psalm plugin for react/mysql

dance-engineer/psalm-knapsack-collections

0 0

Stub to let Psalm understand Knapsack Collections better

el7cosmos/codeception-psalm-plugin

0 0

A Codeception plugin for psalm

fkupper/psalm-laravel-collections

0 8

Stubs to let Psalm understand Laravel Collections better

gjlucky/plugin-lumen

0 0

A Lumen plugin for Psalm

klebann/moodle-psalm-plugin

0 0

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

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

loot/spinoza

0 0

Package can generate documentation for service

mopman/funserialize

0 1

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

orklah/psalm-strict-types-empty-class

0 0

Add declaration of strict_types in empty class

orklah/psalm-type-setters-params

0 4

Use property type to fix param in the setter

patrickkusebauch/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

psalm/plugin-sabre-event

0 0

Psalm plugin for sabre/event

runtothefather/doctrine-psalm-plugin

0 7

Repository resolver to show psalm how to resolve getRepository method

samlitowitz/psalm-no-double-quoted-strings

0 2

Do not allow double-quoted strings

samlitowitz/psalm-no-variables-in-strings

0 3

Do not allow variables in strings

seferov/symfony-psalm-plugin

0 6

Psalm Plugin for Symfony

sglitowitzsoci/soci-psalm-no-string-concatenation

0 0

SOCi Psalm Rule, no string concatenation

snowfall/phalcon-abstract-dispatcher

0 0

dispatcher with taint source for params

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

0 1

Dont' operation inside constructor

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

0 0

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

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

0 16

finding mismatch type assignment in function/method scope with psalm

visma/magento2-psalm

0 3

Psalm plugin for Magento 2

weirdan/psalm-doctrine-collections

0 50

Stubs to let Psalm understand Doctrine better

zerkms/symfony-psalm-plugin

0 3

Stubs for symfony interfaces