You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2019. It is now read-only.
Guo Yunhe edited this page Jun 25, 2016
·
1 revision
Folder and File Naming
Singular or Plural
When the name means this is a collection of items, use plural.
When the name means this is a type of items, use singular.
When the name is a abbreviation, use singular.
Examples: resources/assets/img/icon/300x300.svg
resources, assets are collections of items, use plural. img is a collection but is abbreviation, so use singular. icon is type of items, so use singular.
PascalCase or snake_case or kebab-case
Top level folders use snake_case. Single lowercase word is better, like "database", "resources".
For PHP classes and namespaces in app folder, folders and class files are all PascalCase.
For files and folders in resources folder, use kebab-case.