psalm / psalm-plugin-laravel by muglug

Psalm plugin for Laravel
3,942,654
314
8
Package Data
Maintainer Username: muglug
Maintainer Contact: github@muglug.com (Matthew Brown)
Package Create Date: 2019-02-18
Package Last Update: 2025-03-20
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-04-15 03:03:46
Package Statistics
Total Downloads: 3,942,654
Monthly Downloads: 66,037
Daily Downloads: 4,913
Total Stars: 314
Total Watchers: 8
Total Forks: 72
Total Open Issues: 15

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.