Is php linting a thing?


#1

I’ve had trouble finding out about this. Im somewhat familiar that it is done with javascript frameworks (since I went to a bootcamp to learn react).

Is linting in php a thing? Once again Im not real sure and never used any type of linting. The closest was probably using prettier for javascript in VSCode.

Any tips or guides anyone knows of?

Thanks


#2

Yes, you can lint using the php binary itself, no additional tools required. Just run php -l /path/yo/your/file.php.


#3

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.