So far, I've seen many different naming conventions used for PHP namespaces. Some people use PascalCaseJustLikeForClasses
, some use underscoredlower_case
ames
, some even use the Java convention for package names: comdomainprojectpackage
.
The question is very simple -- can any of these (or other) conventions be called well-established? Why? Are any of them recommended by authorities like Zend or the developers of well-known PHP frameworks?
question from:
https://stackoverflow.com/questions/1820353/is-there-a-well-established-naming-convention-for-php-namespaces 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…