There are some file naming conventions used by Phing. Here's a quick rundown on the most basic conventions. A more detailed list can be found in [See Naming And Coding Standards]:
-
Filenames consist of no more or less than two elements:
name
andextension
. -
Choose short descriptive filenames (must be less than 31 chars)
-
Names must not contain dots.
-
Files containing PHP code must end with the extension
.php
. -
There must be only one class per file (no procedural methods allowed, use a separate file for them), with the exception of "inner"-type / helper classes that can be declared in the same file as the "outer" / main class.
-
The name portion of the file must be named exactly like the class it contains.
-
Buildfiles and configure rulesets must end with the extension
.xml
.