I would like to have some type of automatic checking of coding standards for PHP Nette Framework is there anything like this? Standalone application or plugin for Eclipse, Netbeans ... For example to check Java code I use Checkstyle. Or can Checkstyle also check Nette?
Asked
Active
Viewed 508 times
5
-
http://stackoverflow.com/questions/5261232/checkstyle-for-php-as-eclipse-plugin – marekful Nov 21 '13 at 13:55
-
3[PHPCodesniffer](http://pear.php.net/package/PHP_CodeSniffer), [PHPMD](http://phpmd.org/), etc. – Spudley Nov 21 '13 at 13:57
3 Answers
6
Most up-to-date tool is https://github.com/nette/code-checker (it's extracted from https://github.com/nette/tools).

Vojtěch Dobeš
- 106
- 2
- 5
2
There is Nette code checker here: https://github.com/nette/tools
You can also try this CodeSniffer standard written: https://github.com/juzna/nette-coding-standard

Kacer
- 679
- 3
- 12
0
In 2017, there is official coding standard set to be used: nette/coding-standard
If you want to use it, just follow this tutorial.

Tomas Votruba
- 23,240
- 9
- 79
- 115