1. Home
  2. Docs
  3. PHP Style Guide
  4. File Naming

File Naming

Class files must be named in a Ucfirst-like manner, while any other file name (configurations, views, generic scripts, etc.) should be in all lowercase.

INCORRECT:

CORRECT:

Furthermore, class file names should match the name of the class itself. For example, if you have a class named Myclass, then its filename must be Myclass.php.

Was this article helpful to you? Yes No

How can we help?