Answer the question
In order to leave comments, you need to log in
Automatic PHP Code Checker
Dear habrausers,
Recently I wanted to make an automatic check of PHP code before deployment to the server (not Unit tests). That is, I would like to have such a tool that would say that an error is possible in the code. Unfortunately, I only know php -f (script execution) and php -l (check for syntax errors). Perhaps there are some 3rd party tools for analysis. Unfortunately, Google did not give a solution to the problem (plugins for well-known IDEs were mainly offered, but I would like a tool that can be run from the command line).
apt-cache search php | grep analy
doesn't say anything good either :)
If you know of similar analyzers, please share.
Answer the question
In order to leave comments, you need to log in
https://github.com/sebastianbergmann/php-hudson-template collection of all tools in one place with integration into the hudson CI server. PHPunit can be disabled.
I also heard about phplint and while looking for a link to it, I also found this: stackoverflow.com/questions/378959/is-there-a-static-code-analyzer-like-lint-for-php-files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question