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

412,803 62

Psalm plugin for PHPUnit

psalm/plugin-symfony

281,619 182

Psalm Plugin for Symfony

weirdan/doctrine-psalm-plugin

112,356 76

Stubs to let Psalm understand Doctrine better

psalm/plugin-laravel

63,175 241

A Laravel plugin for Psalm

psalm/plugin-mockery

57,796 8

Psalm plugin for Mockery

php-standard-library/psalm-plugin

27,978 15

Psalm plugin for the PHP Standard Library

orklah/psalm-insane-comparison

16,001 32

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

humanmade/psalm-plugin-wordpress

15,190 49

WordPress stubs and plugin for Psalm.

lctrs/psalm-psr-container-plugin

13,766 14

Let Psalm understand better psr11 containers

shoot/psalm-plugin

7,991 1

Provides static analysis for Shoot models and presenters

orklah/psalm-strict-types

4,578 15

Adds strict_types declaration when the file is provably safe

leighman/psalm-plugin-todo-by

4,411 0

Support @todo-by docblock annotations

dq5studios/psalm-junit

4,034 3

Add junit report format to psalm

orklah/psalm-strict-visibility

3,338 7

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

boesing/psalm-plugin-stringf

2,948 8

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

orklah/psalm-strict-equality

2,859 6

Automatically change == into === when safe

hectorj/safe-php-psalm-plugin

2,103 8

vimeo/psalm plugin for thecodingmachine/safe

alexeyshockov/guzzle-psalm-plugin

2,076 1

Guzzle type information for Psalm

marartner/psalm-no-empty

2,066 3

Do not allow usage of empty()

orklah/psalm-not-empty

2,038 24

Automatically change empty() into a more explicit expression

practically/psalm-plugin-yii2

1,980 7

Psalm plugin for a better typed yii2 application

orklah/psalm-strict-numeric-cast

1,956 6

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

orklah/psalm-use-constants

1,956 5

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

the-toster/psalm-jms-serializer

1,918 1

Add return type typehints to deserialization methods

orklah/psalm-elvis-begone

1,722 7

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

patchlevel/event-sourcing-psalm-plugin

1,318 4

psalm plugin for patchlevel/event-sourcing

nederdirk/psalm-redis-stubs

1,196 1

Function signatures for the phpredis PECL package

marartner/psalm-strict-equality

1,051 3

Psalm plugin to enforce strict equality

cspray/phinal

957 10

Enforce final on your classes!

redaxo/psalm-plugin

904 6

Psalm Plugin for REDAXO

mortenson/psalm-plugin-drupal

569 38

Psalm support for Drupal security analysis.

klimick/psalm-show-type

330 2

Analog for psalm-trace but with pretty print

kafkiansky/service-locator-interrupter

312 6

Psalm plugin for Laravel that interrupt service locator calls.

tdgroot/magento2-psalm

264 1

Psalm plugin for Magento 2

runtothefather/doctrine-mongodb-psalm-plugin

240 6

Stubs to let Psalm understand Doctrine MongoDb ODM better

someniatko/iter-psalm-plugin

234 0

nikic/iter type information for Psalm

kafkiansky/reduce-arguments

145 0

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

lordsimal/cakephp-psalm

112 1

A psalm-plugin for CakePHP

jmvdevelop/psalm-glob-stubs-plugin

78 1

Allow stubs with glob in your project

matthewbdaly/psalm-plugin-zendframework1

57 2

Psalm plugin for Zend Framework 1

bocmah/psalm-reactphp-promise-plugin

36 2

Psalm plugin for react/promise

typesetsh/dynamic-property-access-assume-type

22 0

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

zadorin/bitrix-psalm-plugin

15 6

Psalm plugin for Bitrix Framework

weirdan/psalm-plugin-skeleton

9 10

Template to create psalm-plugin projects from

visma/magento2-psalm

7 3

Psalm plugin for Magento 2

brokeyourbike/plugin-laravel

5 2

A Laravel 8 plugin for Psalm. PHP 8 only.

h4ck3r31/psalm-issue-filter-plugin

4 0

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

h4ck3r31/psalm-static-plugin

4 0

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

kvush/layer-violation-psalm-plugin

3 0

Detect layer dependency violation psalm-plugin

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

2 0

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

dance-engineer/psalm-knapsack-collections

1 0

Stub to let Psalm understand Knapsack Collections better

el7cosmos/codeception-psalm-plugin

1 0

A Codeception plugin for psalm

futurerockstars/nette-psalm-plugin

1 2

Psalm plugin for Nette Framework

loot/spinoza

1 0

Package can generate documentation for service

runtothefather/doctrine-psalm-plugin

1 7

Repository resolver to show psalm how to resolve getRepository method

sglitowitzsoci/soci-psalm-no-string-concatenation

1 0

SOCi Psalm Rule, no string concatenation

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

1 16

finding mismatch type assignment in function/method scope with psalm

weirdan/psalm-doctrine-collections

1 50

Stubs to let Psalm understand Doctrine better

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

bocmah/psalm-reactphp-mysql-plugin

0 0

Psalm plugin for react/mysql

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.

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

samlitowitz/psalm-no-double-quoted-strings

0 2

Do not allow double-quoted strings

samlitowitz/psalm-no-variables-in-strings

0 2

Do not allow variables in strings

seferov/symfony-psalm-plugin

0 6

Psalm Plugin for Symfony

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

zerkms/symfony-psalm-plugin

0 3

Stubs for symfony interfaces