psalm / psalm-plugin-laravel by muglug

Psalm plugin for Laravel
4,727,125
325
9
Package Data
Maintainer Username: muglug
Maintainer Contact: github@muglug.com (Matthew Brown)
Package Create Date: 2019-02-18
Package Last Update: 2025-12-02
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2026-02-02 15:12:43
Package Statistics
Total Downloads: 4,727,125
Monthly Downloads: 66,745
Daily Downloads: 1,556
Total Stars: 325
Total Watchers: 9
Total Forks: 74
Total Open Issues: 20

laravel-psalm-plugin

A Psalm plugin for Laravel

Installation

First install Psalm in your project, making sure to run --init, then run the following commands:

composer require --dev psalm/plugin-laravel
vendor/bin/psalm-plugin enable psalm/plugin-laravel

How it works

Under the hood it just runs https://github.com/barryvdh/laravel-ide-helper and feeds the resultant stubs into Psalm. It also uses a couple of function return type providers, but nothing special.