Go to file
feek eed0e6f3b9
Merge pull request #135 from twistor/builder-covariant
Make the Model template on the Builder covariant.
2021-03-22 11:47:24 -07:00
.github Fix some tests 2020-10-19 18:38:34 -04:00
assets chore: include screenshot 2020-05-03 21:27:08 -07:00
src Make the Model template on the Builder covariant. 2021-03-20 20:11:27 -04:00
tests hack: psalm 4 needs an __call method to exist. see https://github.com/vimeo/psalm/issues/4190 2020-12-06 15:59:47 -05:00
.gitignore change file extension of ide helper files so phpstorm doesnt analyze them 2020-04-18 13:16:19 -07:00
codeception.yml introduce testing 2020-04-08 00:47:02 -07:00
composer.json Removed deprecated version 2021-03-13 00:48:26 -05:00
LICENSE Add license 2020-02-03 16:57:15 -05:00
phpcs.xml chore: introduce phpcs 2020-04-12 11:55:32 -07:00
psalm-baseline.xml refactor: simplify logic for booting the app by stubbing the lumen application file 2020-04-13 21:16:12 -07:00
psalm.xml Update return types 2020-10-19 12:12:59 -04:00
README.md Update README.md 2020-08-25 14:30:00 +09:00

Psalm plugin for Laravel

Packagist Packagist Type coverage dev-master Tests

Overview

This package brings static analysis and type support to projects using Laravel. 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!

Screenshot

Quickstart

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 psalm/plugin-laravel
./vendor/bin/psalm-plugin enable psalm/plugin-laravel

Finally, run Psalm to analyze your codebase

./vendor/bin/psalm

How it works

Under the hood it just runs https://github.com/barryvdh/laravel-ide-helper 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.