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
It is a good practice to standardize the file structure of projects. This way it’s easier to keep a clean overview of multiple projects, and less time is wasted trying to find the correct class.
3
+
Dotkernel API follows the [PSR-4](https://www.php-fig.org/psr/psr-4/) standards.
4
4
5
-
When using DotKernel API the following structure is recommended:
5
+
It is a good practice to standardize the file structure of projects.
6
+
7
+
When using DotKernel API the following structure is installed by default:
8
+
9
+

6
10
7
11
## Main directories
8
12
9
-
*`src` - should contain the source code files
10
-
*`templates` - should contain the page templates and layouts
13
+
*`bin` - executable files from CLI
14
+
*`config` - various configuration files
11
15
*`data` - should contain project-related data (AVOID storing sensitive data on VCS)
12
-
*`docs` - should contain project-related documentation
16
+
*`documentation` - should contain project-related documentation
17
+
*`log` - storage of log files generated by dot-error-log library
18
+
*`public` - publicly visible files. The webserver need to have this folder as www-document root folder.
19
+
*`src` - should contain the source code files
20
+
*`test` - should contain the test files
13
21
14
-
These directories reside in one of the following directories:
22
+
## Special purpose folders
15
23
16
-
*if the Module is a composer package where the directories above are stored in the package’s root path, eg.: `/vendor/my-name/my-project-name/`
17
-
*if the Module is an extension/component for the project, eg.: `/src/MyProjectName`
0 commit comments