Installation

Creating a project

Composer

Before starting the installation, make sure that you have Composer and PHP installed

After you have made sure that you have Composer and PHP installed, you can run the following command to create a new project

composer create-project AnvilM/PHP-MVC example-project

Github

You can also copy the example application code from the Github

git clone https://github.com/AnvilM/PHP-MVC

Initial Configuration

Application Configuration

All configuration files are stored in the config directory. You can change some settings for your application

Environment Configuration

You can configure all the environment variables in the .env file, but remember that this file mainly contains variables needed to run the application, such as secret keys, database connection information and other services, so this file should not be stored in your repositories.

Starting the server

After creating and configuring the project, you can go to the directory of the newly created project and launch the local server using Nailer

cd example-project

php nailer serve