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

380,177 68

Psalm plugin for PHPUnit

psalm/plugin-symfony

228,508 203

Psalm Plugin for Symfony

weirdan/doctrine-psalm-plugin

114,526 79

Stubs to let Psalm understand Doctrine better

psalm/plugin-laravel

73,944 254

A Laravel plugin for Psalm

psalm/plugin-mockery

36,556 8

Psalm plugin for Mockery

php-standard-library/psalm-plugin

28,459 17

Psalm plugin for the PHP Standard Library

orklah/psalm-insane-comparison

17,186 32

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

lctrs/psalm-psr-container-plugin

12,437 14

Let Psalm understand better psr11 containers

leighman/psalm-plugin-todo-by

5,764 0

Support @todo-by docblock annotations

orklah/psalm-strict-types

4,919 16

Adds strict_types declaration when the file is provably safe

humanmade/psalm-plugin-wordpress

4,370 55

WordPress stubs and plugin for Psalm.

dq5studios/psalm-junit

4,069 4

Add junit report format to psalm

boesing/psalm-plugin-stringf

3,765 10

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

practically/psalm-plugin-yii2

2,362 9

Psalm plugin for a better typed yii2 application

orklah/psalm-strict-visibility

2,304 7

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

alexeyshockov/guzzle-psalm-plugin

2,258 2

Guzzle type information for Psalm

marartner/psalm-no-empty

2,094 4

Do not allow usage of empty()

orklah/psalm-strict-equality

1,814 7

Automatically change == into === when safe

cspray/phinal

1,314 12

Enforce final on your classes!

orklah/psalm-not-empty

1,254 25

Automatically change empty() into a more explicit expression

the-toster/psalm-jms-serializer

1,230 2

Add return type typehints to deserialization methods

patchlevel/event-sourcing-psalm-plugin

1,157 4

psalm plugin for patchlevel/event-sourcing

orklah/psalm-strict-numeric-cast

1,104 7

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

mortenson/psalm-plugin-drupal

1,021 40

Psalm support for Drupal security analysis.

marartner/psalm-strict-equality

953 3

Psalm plugin to enforce strict equality

tdgroot/magento2-psalm

500 3

Psalm plugin for Magento 2

shoot/psalm-plugin

482 1

Provides static analysis for Shoot models and presenters

redaxo/psalm-plugin

349 6

Psalm Plugin for REDAXO

kafkiansky/service-locator-interrupter

347 8

Psalm plugin for Laravel that interrupt service locator calls.

runtothefather/doctrine-mongodb-psalm-plugin

307 6

Stubs to let Psalm understand Doctrine MongoDb ODM better

someniatko/iter-psalm-plugin

285 0

nikic/iter type information for Psalm

hectorj/safe-php-psalm-plugin

240 8

vimeo/psalm plugin for thecodingmachine/safe

lordsimal/cakephp-psalm

208 2

A psalm-plugin for CakePHP

klimick/psalm-show-type

131 2

Analog for psalm-trace but with pretty print

zadorin/bitrix-psalm-plugin

126 6

Psalm plugin for Bitrix Framework

kafkiansky/reduce-arguments

123 0

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

orklah/psalm-elvis-begone

102 7

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

bocmah/psalm-reactphp-promise-plugin

70 2

Psalm plugin for react/promise

orklah/psalm-use-constants

31 5

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

matthewbdaly/psalm-plugin-zendframework1

16 3

Psalm plugin for Zend Framework 1

h4ck3r31/psalm-issue-filter-plugin

7 0

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

h4ck3r31/psalm-static-plugin

7 0

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

weirdan/psalm-plugin-skeleton

7 10

Template to create psalm-plugin projects from

seferov/symfony-psalm-plugin

2 6

Psalm Plugin for Symfony

aivchen/psalm-forbidden-plugin

0 0

Psalm plugin to forbid inheritance for classes

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

bafs/psalm-plugin-typecov

0 1

Get nice type coverage reports

bocmah/psalm-reactphp-mysql-plugin

0 0

Psalm plugin for react/mysql

brokeyourbike/plugin-laravel

0 2

A Laravel 8 plugin for Psalm. PHP 8 only.

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

futurerockstars/nette-psalm-plugin

0 2

Psalm plugin for Nette Framework

gjlucky/plugin-lumen

0 0

A Lumen plugin for Psalm

jmvdevelop/psalm-glob-stubs-plugin

0 1

Allow stubs with glob in your project

klebann/moodle-psalm-plugin

0 0

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

kvush/layer-violation-psalm-plugin

0 0

Detect layer dependency violation psalm-plugin

leightonthomas/validation-psalm-plugin

0 1

Psalm plugin for leightonthomas/validation.

loot/spinoza

0 0

Package can generate documentation for service

mmcev106/psalm-playground-plugins

0 0

A tool for learning how to write Psalm plugins

mopman/funserialize

0 1

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

nederdirk/psalm-redis-stubs

0 1

Function signatures for the phpredis PECL package

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

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

typesetsh/dynamic-property-access-assume-type

0 0

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

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