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 ghosty/ghosty example-project
You can also copy the example application code from the Github
git clone https://github.com/GhostyPHP/Ghosty
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.
After creating and configuring the project, you can go to the directory of the newly created project and launch the local server
cd example-project/public
php -S localhost:8000