Is there any convention for naming php files?
Not talking about php class files, but files that are mostly HTML with some php inside them.
Should it be my-file-example.php
PSR-4 recommends using a directory hierarchy to represent the namespace.
For Object-Oriented programming, the autoloader can simplify code management with relatively little cost overhead at run time. This requires the capability to determine a file path from a class name - hence a linear transform of the latter is a good idea. This might be as simple as $className . ".php"