Set Kyar Wa Lar shows us how to set up PHP CodeSniffer and PreCommit Githooks to a Laravel Project.

code sniffer laravel

What’s the benefit of using PHP CodeSniffer? PHP CodeSniffer shows you coding standard errors and phpcbf help fix you basic coding standard problems. By using PHP CodeSniffer, you don’t have to worry that much for the coding standard. When someone new comes to join the team, it’s much easier for him/her and for the rest of the team as well.