- Download the archive or clone the project using git
- Create
.env
file from.env.example
file and adjust database and maill parameters - Run
composer install
- Run
php migrations.php
to apply migrations - Go to the
public
folder - Start php server by running command
php -S 127.0.0.1:8080
- Open in the browser http://127.0.0.1:8080
The entry point of the application is public/index.php
. This file contains contains all the routes for your application as well as the configuration array.
The are two types of requests:
- get
- post
The request should be specified when adding a route.
e.g
$app->router->get('/contact',[SiteController::class,'contact']);
$app->router->post('/contact',[SiteController::class,'contact']);