Install Codeigniter 4 in xampp; Through this tutorial, we will learn how to install Codeigniter 4 in xampp with windows 11/10 system.
How to Install CodeIgniter 4 in Xampp
Let’s use the following steps to install codeigniter 4 in xampp windows 11/10 system:
- Step 1 – Navigate to Xampp Directory
- Step 2 – Install / Download Codeigniter 4
- Step 3 – Run the Codeigniter 4 Project
Step 1 – Navigate to Xampp Directory
Execute the following command on command line to navigate to xampp directory:
cd C:\Xampp\htdocs\
Step 2 – Install / Download Codeigniter 4
In this step, WE need to open command prompt and run the following command for creating a Codeigniter project name “first-CodeIgniter-4”.
composer create-project codeigniter4/appstarter first-CodeIgniter-4 -s rc
Now, We will update dependency using below command. Whenever there is a new release, then from the command line in your project root:
composer update
Step 3 – Run the Codeigniter 4 Project
Run the following command
php spark serve OR php spark serve --port=8081 OR php -S localhost:3000
Then, go to the browser and hit url:
http://localhost:8000/ or http://localhost:8081/ or http://localhost:3000/
Conclusion
Through this tutorial, we have learn how to install Codeigniter 4 in xampp with windows 11/10 system.