This is my personal setup for linting and repo branches protection for a new laravel project. Feel free to copy and adjust.
I am using both bitbucket and github for mostly private projects, while bitbucket allows private repo to use advance features such as branch permission, github limit their protected branch feature for free-user.
On the other hand, implementing standard linting for both JS and PHP will help code-reviewer to read and evaluate the code.
Last but not least, standardized commit message will make everybody happy. =)