Install / Download Codeigniter 4 By Manual, Composer, Git

Install / Download Codeigniter 4 By Manual, Composer, Git

Codeigniter 4 Tutorial – In this article, We would love to share with you how to install & download Codeigniter 4 project using the composer. In this tutorial, We will install the Codeigniter project and run the downloaded project.

We would love to share with you some basic configuration of the Codeigniter project. After successfully download the Codeigniter fresh setup, we need some basic configuration of the Codeigniter project.

Contents

  • Install / Download Composer
  • Check Composer
  • Install / Download Codeigniter
  • Conclusion

1. Install / Download Composer

Go to the browser and hit the following URL in your browser https://getcomposer.org/download/

Download the composer and follow the setup of installation.

2. Check Composer

Open the command prompt/terminal

composer

3. Install / Download Codeigniter 4

There are 3 ways to download and install Codeigniter 4.

The first way to install or download Codeigniter 4

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

The second way to install or download Codeigniter 4

In this step, you need to open your 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

The Third way to install or download Codeigniter 4

In the third step, you can download or install the codeigniter 4 using git.

git remote add upstream https://github.com/codeigniter4/CodeIgniter4.git 

4. Run the project

Next, we will run the download project, let’s open the terminal so go to

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

Run the following command

php spark serve 

OR

php spark serve --port=8081 

OR

php -S localhost:3000

After run the above command, go to browser and hit url http://localhost:8000/ or http://localhost:8081/ or http://localhost:3000/

5. Conclusion

In this Codeigniter 4 tutorial – we have successfully installed or download the CodeIgniter project using the composer, git and manual.

Leave a Reply

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