static analysis in PHP, and more specifically Laravel, has become more and more popular. With more people adopting it into their Software Delivery Lifecycle, I thought it would be a good time to write a tutorial on how you can add this to your Laravel project. Back in 2019 Nuno Maduro released a package called Larastan which was a set of PHPStan rules that work well for Laravel applications. Up until this point I had struggled getting a good static analysis coverage in Laravel using PHPStan or Psalm.

11m read timeFrom laravel-news.com
Post cover image

Sort: