Codeigniter 4 Install / Download 




Codeigniter 4 Install / Download 

Codeigniter 4 Install / Download Tutorial – In this Post, You will learn how to install & download the Codeigniter 4 project using the composer. In this tutorial, We will install the Codeigniter project and run the downloaded project.

Codeigniter 4 Install / Download

  • Install / Download Composer
  • Install / Download Codeigniter
  • Run the project

Step1: Install / Download Composer

Codeigniter can also be downloaded from the composer. Therefore it is necessary to have composer installed in your system. If your system does not have composer installed, then visit the following link to install composer:

Download the composer and follow the setup of installation. 

Go to the browser and hit the following URL in your browser

Check Composer

Open the command prompt/terminal


Step2: Install / Download Codeigniter 4

There are 3 ( Manual, Composer, Git ) ways to download and install Codeigniter 4 in your system.

The first method

Go to Codeigniter’s official website and download the project and extract Codeigniter’s new setup and your local webserver environment.

The second method 

In this method, you need to open your command prompt and run the following commands for installing/downloading a Codeigniter project name “first-CodeIgniter-4”.

cd/local webserver

composer create-project codeigniter4/appstarter  first-CodeIgniter-4  -s rc 

After that, We will update dependency using the below command. Whenever there is a new release, then from the command line in your project root:

composer update

The Third method

In the third method, you can download or install the Codeigniter 4 using git.

git remote add upstream 

Step3: Run the project

You can run your downloaded project by following the instruction given below:

cd C:\Xampp\htdocs\first-CodeIgniter-4 

Run the following command

php spark serve 


php spark serve --port=8081 

After running the above command, go to the browser and hit URL http://localhost:8000/ or http://localhost:8081/ or 

You can hit the following URL on your browser to run your project: 

http://localhost/your project name/public