This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel 8 plugin for Psalm. PHP 8 only.

Installs: 2 696

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 0

Forks: 62


v2.0.0 2021-06-29 20:38 UTC


Packagist Packagist Type coverage Tests


This package brings static analysis and type support to projects using Laravel 8. Our goal is to find as many type-related bugs as possible, therefore increasing developer productivity and application health. Find bugs without the overhead of writing tests!



Please refer to the full Psalm documentation for a more detailed guide on introducing Psalm into your project.

First, start by installing Psalm if you have not done so already:

composer require --dev vimeo/psalm
./vendor/bin/psalm --init

Next, install this package and enable the plugin

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

Finally, run Psalm to analyze your codebase


How it works

Under the hood it just runs and feeds the resultant stubs into Psalm, which can read PhpStorm meta stubs.

It also parses any database migrations it can find to try to understand property types in your database models.