S
S
So12010-11-19 11:02:07
PHP
So1, 2010-11-19 11:02:07

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

5 answer(s)
K
Kirill Mokevnin, 2010-11-19
@toxicmt

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.

N
neyronius, 2010-11-19
@neyronius

Look here
qualityassuranceinphpprojects.com/pages/tools.html

G
gro, 2010-11-19
@gro

Check for what?

A
Alexey Shein, 2010-11-20
@conf

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.

D
dnabyte, 2012-08-29
@dnabyte

Here is a good example, without using the console Parsing a PHP file for errors without executing it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question