Take the 2-minute tour ×  I really like using ClassNames and
memberNames as convention but I am not sure how I would name the
file containing a class.  I like making my classes defined in a
file with the exact same name as the class. But I also like
making php files all lowercase. So I am conflicted.  If I have a
class called ProductGroup should that be defined in
ProductGroup.php, productgroup.php, or product_group.php?  I
know there is no right answer, so I am looking for what is most
common or your opinion of which to use.. which do you use?
share|improve this question add comment  6 Answers  At work we
use underscores as folder delimiters and name the files exactly
the same as the path. The autoloader is very simple, it just has
to replace _ with / and add '.php' to the end.
ProjectName_Models_ProductGroup() will always reside in
ProjectName/Models/ProductGroup.php. It can make for some very
long class names, but it doesn't really matter with an IDE.  You
could use the same convention, but just run strto