You can install Hathoora PHP Framework anywhere you want. Directory to which you install is called
Here is the default layout of Hathoora PHP Framework installation.
# Directory: HATHOORA_ROOTPATH/ # App root app/ # Folders for organization of code sample admin/ <-- name of application config/ config_dev.yml config_prod.yml controller/ resources/ assets/ css/ js/ images/ templates/ model/ docs/ <-- name of second supported application ... # An app without organizational folder site/ <-- name of third supported application config/ controller/ resources/ # this is where your application definication would go boot/ config/ app_dev.yml app_prod.yml # Public facing docroot/ _assets/ # place your static files here # the frontend controller index.php # third party code goes here (via composer) vendor/
The app directory conatins source of your applications. You can have single application of multiple applications. Each application itself contains the following:
Config: stores application specific configuations which are discussed in more details here.
Controller: stores application specific controllers to intercept requests.
Resources: stores application specific templates and assets.
Model: stores application specific models or logic. This can be named to anything.
The boot directory contains a file called
app_HATHOORA_ENV.yml. This is where you define supported application(s).
HATHOORA_ENV represent the environment your application is running in, this could be dev, prod or anything.
This is public facing directoy which should be configured in your webserver.