How to Install CodeIgniter 4 in Xampp

How to Install CodeIgniter 4 in Xampp

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.

Recommended Codeigniter Posts

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *