Check Syntax in PHP Project

Dear Fellows,

I want to implement Check Syntax in my PHP Project.
I know that we can use “php -l file_name” for check syntax for a file.

But, my need is to check all .php file in the project.
I have searched google, the solution is use recursive check and get the filepath to be checked.
But it will make, we to include any classes. and I think it’s killing me.

Can someone help me to figure out a simpler solution? using plugin maybe?

Thanks in advance.