How to Install CodeIgniter 4 in Xampp

Install Codeigniter 4 in xampp; In 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

AuthorDevendra Dode

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including 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. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

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