Why you should be using PHPStan in all your projects
summary
The talk explains using PHPStan static analysis for PHP projects, showing real-life examples of how it improved code quality. It covers how PHPStan works, how to install and start using it, tips for integrating it into existing projects, and how to write custom extensions and rules to automate checks for project-specific issues.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:51Speaker intro
- 2:34What is PHPStan
- 4:18Static analysis benefits
- 6:04PHPStan levels config
- 8:36Installing PHPStan
- 11:06Basic setup
- 13:36PHPStan levels
- 14:58PHPStan in large projects
- 15:40Ignoring errors
- 17:49Legacy baseline
- 19:58Real-world usage
- 21:01Getting started
- 22:06Tool integration
- 24:15PHPStan with IDEs
- 25:20PHPStan plugins
- 27:50Type coverage plugin
- 28:10Why use PHPStan
- 28:53Learning from PHPStan
- 30:19PHPStan in CI/CD
- 31:44Q&A
related talks
32mFrom Zero to Static Analysis Hero
48mPHPStan: How the Sausage Is Made
44mWhy PHP?
45mTesting Strategy with the Help of a Static Analyzer
33mCustom PHPStan Rules: Automate Standards and Save Time
57mExtending the PHP Language with Static Analysis- Dave Liddament
25mTypes & static analysis are good in PHP
54mCrafting Custom PHPStan Rules
