What are the naming conventions and other standards used when developing a class in php?

Am I new to PHP classes and want to follow standard templates?

+5
source share
3 answers

Zend recommendations are the most popular:

Zend Naming Conventions

Although the really best advice on naming conventions in any project is to simply choose the one that is best for you and your team, and therefore will follow it if it is agreed.

+3
source

Another popular one is that defined here: http://drupal.org/coding-standards

+1
source

It makes sense to choose a widely used coding convention that is well documented. One such example is the PEAR coding agreement (which includes the name of the PEAR convention ). Thus, you are less likely to encounter stylistic differences between yourself and your team members, and you do not need to write and maintain documentation yourself.

0
source

All Articles