3 ms·
1. I use the PEAR standard: Well defined, popular, and plenty of code written in it. 2. Use php_CodeSniffer to check if yout code coonforms to the standard.
by elviejo 18y ago
1. I use the PEAR standard:
Well defined, popular, and plenty of code written in it.
2. Use php_CodeSniffer to check if yout code coonforms to the standard.
http://matrix.squiz.net/developer/tools/php_cs http://matrix.squiz.net/developer/tools/php_cs
3. Make CodeSniffer a pre-commit hook so that when you commit co to SVN it doesn't let you until, your code follows the standard.
and done.