Skip to content

Creating Custom PHPStan and Rector Rules

Avatar of Dave Liddament Dave Liddament

Take your PHP development to the next level by mastering customising two of the PHP ecosystem’s most powerful tools: PHPStan and Rector. Custom PHPStan rules let you enforce project-specific coding standards, catch domain-specific bugs, and even emulate features from other programming languages. Meanwhile, custom Rector rules help you automate and accelerate refactoring, keeping your codebase clean and maintainable.

Both tools follow a very similar process to create custom rules.
In this workshop, we’ll begin by walking through the creation of custom PHPStan rules, exploring how to tailor static analysis to your project's unique needs. Then, we’ll apply those same principles to crafting custom Rector rules, enabling automated refactoring tailored to your codebase.
By the end of the session, you’ll have the knowledge and practical skills to customise and extend these essential tools, empowering your team to write better code faster and with less effort.

1-day Workshop (7 hours)
Delivered in English
Wednesday, November 26, 2025
Starts at 9:30 AM