Custom PHPStan Rules: Automate Standards and Save Time

static analysis phpstan conference talk

Abstract

PHPStan is best known for its ability to catch bugs, but did you know it can do so much more?

By creating custom PHPStan rules you can enforce your project-specific coding standards, automate tedious review tasks, and ensure a consistent codebase - all without manual intervention.

This talk will guide you through step by step the process of creating a custom PHPStan rule. By the end of the talk, you'll have the knowledge and confidence to craft your own PHPStan rules, helping your team reduce bugs, save time, and focus on what matters most: writing great code.


See more talks.

Events
php[tek] 2026 May 2026

[website]

ConFoo 2026 Feb 2026

[slides] [website]

phpDay 2025 May 2025

[slides] [website]