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

345,687 77

Psalm plugin for PHPUnit

psalm/plugin-symfony

225,237 229

Psalm Plugin for Symfony

weirdan/doctrine-psalm-plugin

113,106 85

Stubs to let Psalm understand Doctrine better

psalm/plugin-laravel

61,680 307

Psalm plugin for Laravel

psalm/plugin-mockery

41,856 10

Psalm plugin for Mockery

dq5studios/psalm-junit

37,579 4

Add junit report format to psalm

php-standard-library/psalm-plugin

29,701 24

Psalm plugin for the PHP Standard Library

orklah/psalm-insane-comparison

19,387 34

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

lctrs/psalm-psr-container-plugin

15,847 16

Let Psalm understand better psr11 containers

cspray/phinal

7,960 13

Enforce final on your classes!

patchlevel/event-sourcing-psalm-plugin

5,998 5

psalm plugin for patchlevel/event-sourcing

humanmade/psalm-plugin-wordpress

5,849 70

WordPress stubs and plugin for Psalm static analysis.

leighman/psalm-plugin-todo-by

5,226 1

Support @todo-by docblock annotations

boesing/psalm-plugin-stringf

3,441 12

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

marartner/psalm-no-empty

2,381 4

Do not allow usage of empty()

practically/psalm-plugin-yii2

2,287 9

Psalm plugin for a better typed yii2 application

marartner/psalm-strict-equality

2,170 4

Psalm plugin to enforce strict equality

alexeyshockov/guzzle-psalm-plugin

2,138 4

Guzzle type information for Psalm

orklah/psalm-strict-equality

2,026 7

Automatically change == into === when safe

tooeo/psalm-plugin-jms

1,407 1

Checking JMS annotation

mortenson/psalm-plugin-drupal

1,299 43

Psalm support for Drupal security analysis.

orklah/psalm-not-empty

948 28

Automatically change empty() into a more explicit expression

orklah/psalm-strict-numeric-cast

941 8

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

orklah/psalm-strict-visibility

824 8

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

orklah/psalm-strict-types

525 16

Adds strict_types declaration when the file is provably safe

magdv/psalm-plugin-yii2

397 0

Psalm plugin for a better typed yii2 application

typhoon/check-visibility-psalm-plugin

388 3

Ensures classes and functions have @api or @internal annotation

orklah/psalm-elvis-begone

268 7

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

tdgroot/magento2-psalm

233 3

Psalm plugin for Magento 2

hectorj/safe-php-psalm-plugin

224 9

vimeo/psalm plugin for thecodingmachine/safe

lordsimal/cakephp-psalm

215 2

A psalm-plugin for CakePHP

someniatko/iter-psalm-plugin

193 0

nikic/iter type information for Psalm

fcpl/psalm-pimple-container-plugin

163 0

Psalm plugin to resolve return type for Pimple Container (ArrayAccess)

the-toster/psalm-jms-serializer

160 2

Add return type typehints to deserialization methods

kafkiansky/service-locator-interrupter

155 8

Psalm plugin for Laravel that interrupt service locator calls.

redaxo/psalm-plugin

74 6

Psalm Plugin for REDAXO

kafkiansky/reduce-arguments

60 0

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

someniatko/result-type-psalm-plugin

55 0

Psalm plugin for someniatko/result-type library

runtothefather/doctrine-mongodb-psalm-plugin

52 6

Stubs to let Psalm understand Doctrine MongoDb ODM better

php-static-analysis/psalm-plugin

47 1

Psalm plugin to read static analysis attributes

savinmikhail/symfony-translatable-exceptions

34 0

Make sure there's no hardcoded exception messages, only translated ones

aivchen/psalm-forbidden-plugin

33 0

Psalm plugin to forbid inheritance for classes

typesetsh/dynamic-property-access-assume-type

33 0

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

michaelcozzolino/psalm-html-report

31 1

A Psalm plugin to generate the output in a formatted html table.

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

28 2

Dont' operation inside constructor

zerkms/symfony-psalm-plugin

28 2

Stubs for symfony interfaces

glomberg/wpdb-unsafe-methods

20 0

Psalm plugin to forbid calling provided `$wpdb` methods

matthewbdaly/psalm-plugin-zendframework1

7 4

Psalm plugin for Zend Framework 1

klimick/psalm-show-type

5 2

Analog for psalm-trace but with pretty print

shahruslan/psalm-plugin-bitrix

5 0

Psalm plugin for CMS Bitrix

weirdan/psalm-plugin-skeleton

5 10

Template to create psalm-plugin projects from

bafs/psalm-plugin-typecov

4 2

Get nice type coverage reports

bocmah/psalm-reactphp-mysql-plugin

3 0

Psalm plugin for react/mysql

jmvdevelop/psalm-glob-stubs-plugin

3 1

Allow stubs with glob in your project

klebann/moodle-psalm-plugin

3 0

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

loot/spinoza

3 0

Package can generate documentation for service

bocmah/psalm-reactphp-promise-plugin

2 2

Psalm plugin for react/promise

weirdan/psalm-doctrine-collections

2 50

Stubs to let Psalm understand Doctrine better

zadorin/bitrix-psalm-plugin

2 7

Psalm plugin for Bitrix Framework

kafkiansky/forbid

1 0

A psalm plugin that finds and forbids code smells.

kvush/layer-violation-psalm-plugin

1 1

Detect layer dependency violation psalm-plugin

orklah/psalm-use-constants

1 5

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

psalm/plugin-sabre-event

1 0

Psalm plugin for sabre/event

typhoon/psalm-plugin

1 0

Typhoon Psalm Plugin

alexeyshockov/iter-psalm-plugin

0 2

nikic/iter type information for Psalm

altahrim/nextcloud-psalm-plugin

0 0

Stubs for Nextcloud applications

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

h4ck3r31/psalm-issue-filter-plugin

0 0

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

h4ck3r31/psalm-static-plugin

0 0

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

mmcev106/psalm-playground-plugins

0 0

A tool for learning how to write Psalm plugins

mopman/funserialize

0 2

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

nulldark/plugin-mockery

0 0

Psalm plugin for Mockery

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

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

shoot/psalm-plugin

0 1

Provides static analysis for Shoot models and presenters

snowfall/phalcon-abstract-dispatcher

0 0

dispatcher with taint source for params

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

tuncay/psalm-wp-taint

0 3

A psalm plugin that adds stubs for psalm to define custom taint sinks for wordpress projects

visma/magento2-psalm

0 4

Psalm plugin for Magento 2