Static analysis tools like PHPStan have become essential for PHP developers, and all projects can greatly benefit from custom rules tailored to their specific needs. In this talk, I will guide the audience through the process of writing custom PHPStan rules to enforce project-specific standards and catch domain-specific bugs, and freeing up valuable time by automating repetitive code review tasks.

Comments

Please login to leave a comment

Dmitri at 11:29 on 20 Feb 2026

Loved it, immediately had lots of great ideas to implement!

Great talk highlighting the how's of writing rules - looking forward to trying it out for a few things in my codebase

Peter Mead at 17:05 on 20 Feb 2026

I've been thinking of creating a custom PHPstan rule for a while. Now I have no excuse.