This is a basic PHP course example code. In order to run it, you need to:
-
Have a MySQL/MariaDB instance running;
-
Configure the database connection params at app/config/database.php (or create the file app/config/database.local.php with the same configuration);
-
Run the create database script (be sure to configure an user with proper rights at previous step):
php createDatabase.php
-
Run the project. For example:
php -S localhost:8888 -t web/