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-mockery

51,243 10

Psalm plugin for Mockery

php-standard-library/psalm-plugin

21,547 25

Psalm plugin for the PHP Standard Library

humanmade/psalm-plugin-wordpress

13,013 81

WordPress stubs and plugin for Psalm static analysis.

orklah/psalm-insane-comparison

7,582 34

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

orklah/psalm-strict-equality

7,228 7

Automatically change == into === when safe

patchlevel/event-sourcing-psalm-plugin

6,557 6

psalm plugin for patchlevel/event-sourcing

orklah/psalm-not-empty

789 28

Automatically change empty() into a more explicit expression

cspray/phinal

766 14

Enforce final on your classes!

orklah/psalm-strict-visibility

735 8

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

mortenson/psalm-plugin-drupal

665 44

Psalm support for Drupal security analysis.

orklah/psalm-strict-numeric-cast

648 8

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

boesing/psalm-plugin-stringf

606 12

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

the-toster/psalm-jms-serializer

283 2

Add return type typehints to deserialization methods

lordsimal/cakephp-psalm

216 2

A psalm-plugin for CakePHP

orklah/psalm-strict-types

162 16

Adds strict_types declaration when the file is provably safe

guuzen/psalm-enum-plugin

81 0

Reports attempts to create enum with a wrong case

bafs/psalm-plugin-typecov

39 3

Get nice type coverage reports

magdv/psalm-plugin-yii2

23 0

Psalm plugin for a better typed yii2 application

runtothefather/doctrine-psalm-plugin

11 7

Repository resolver to show psalm how to resolve getRepository method

hectorj/safe-php-psalm-plugin

6 9

vimeo/psalm plugin for thecodingmachine/safe

jmvdevelop/psalm-glob-stubs-plugin

1 1

Allow stubs with glob in your project

aivchen/psalm-forbidden-plugin

0 0

Psalm plugin to forbid inheritance for classes

altahrim/nextcloud-psalm-plugin

0 0

Stubs for Nextcloud applications

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

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

kafkiansky/forbid

0 0

A psalm plugin that finds and forbids code smells.

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-elvis-begone

0 7

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

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

orklah/psalm-use-constants

0 5

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

patrickkusebauch/nette-psalm-plugin

0 1

Psalm plugin for Nette Framework

samlitowitz/psalm-no-double-quoted-strings

0 2

Do not allow double-quoted strings