-
Notifications
You must be signed in to change notification settings - Fork 3
Application Structure Description
sunrise-php edited this page Jan 7, 2019
·
2 revisions
βββ config
βΒ Β βββ cli-config.php
βΒ Β βββ container.php
βΒ Β βββ definitions.php
βΒ Β βββ environment.php
βββ public
βΒ Β βββ index.php
βββ src
βΒ Β βββ Entity
βΒ Β βΒ Β βββ AbstractEntity.php
βΒ Β βββ Exception
βΒ Β βββ Http
βΒ Β βββ Controller
βΒ Β βΒ Β βββ HomeController.php
βΒ Β βββ Middleware
βΒ Β βββ App.php
βββ tests
Directory | Description |
---|---|
config |
Must contain the application configs |
public |
Must contain the application entry point and any public files |
src |
Must contain the application classes |
src/Entity |
Must contain the application models (entities for Doctrine ORM) |
src/Exception |
Must contain the application exceptions |
src/Http/Controller |
Must contain the application controllers |
src/Http/Middleware |
Must contain the application middlewares |
tests |
Must contain any tests for the application |
File | Description |
---|---|
config/cli-config.php |
Setup to run Doctrine in CLI mode (source) |
config/container.php |
PHP-DI build (source) |
config/definitions.php |
The application dependencies |
config/environment.php |
The application environment options |
public/index.php |
The application entry point (the web server should proxy to this file, and only to it) |
src/Entity/AbstractEntity.php |
All models (entities) must be extended by it class for validation to be available |
src/Http/Controller/HomeController.php |
Demo controller for home page |
src/Http/App.php |
This class runs the application |
Have questions?
Ask your questions in our chat:
Get more features for yourΒ application using AwesomeΒ PSR-15Β Middleware