In our projects, we are often using existing sets of rules and good
practices, but sometimes there is a desire to follow unique,
project-specific rule. Then, instead of manually checking the new
policy, it is worth to automate it.
Workshop will present how to achieve that using PHP CS Fixer. We will
start from basics - how to analyse source code using... code! We will
learn how the code looks after tokenization and how to traverse over
it, and even manipulate it. Finally, we will learn how to create our
own, custom rule with both, unit and integration tests.
Requirements: - own laptop - php 5.6+ - composer - git