Is it possible to analyze (check) a PHP code to determine the "quality" of the organization and to detect potential problems?
Is it possible to analyze (check) a PHP code to determine the "quality" of the organization and to detect potential problems?
PHP already provides this type of tool by command line, you can test the "quality of the code" by command line:
php -l <fileName>
An example in Windows would be:
D:\wamp\php\php.exe -l "D:\wamp\www\arquivo.php"
In addition to this tool there are other ways to do this as you answer in SOen :
There is also a simple tool called PHPLint and can be test online , the problem is that for newer versions of PHP and phpDocumentor it has been outdated but still useful for simpler testing.