DEV Community

Discussion on: PHP code, about readability and performance

Collapse
 
kellyjandrews profile image
Kelly Andrews

Out of curiosity, are there any style linters for PHP? I have been looking for one with no luck. I know that has helped JavaScript clean up some of it's style problem.

Collapse
 
sebastianr1982 profile image
Sebastian Rapetti

Hi for my project, I use StyleCI that automatically scan new github commits. Also you can check the PSR2 Coding style guide php-fig.org/psr/psr-2/ and php-cs-fixer, a command line tool that correct the code to comply with PSR2