Installing Codeigniter 4 on Windows

Why use Codeigniter

According to the official website, CodeIgniter 4 is a powerful PHP framework with a very small size and features that are quite easy to understand. Built for developers who need a simple and elegant toolkit to create full-featured web applications. From the explanation above, CodeIgniter is a powerful, lightweight, and simple framework for creating web applications.

  • Specifications needed to install CodeIgniter 4

The PHP version used is at least v 7.2, if using PHP below v 7.2 it is recommended to update. There are also several servers needed, including:

  • intl extension
  • mbstring extension.
  • php-json
  • php-mysqlnd
  • php-xml
  • How to solve ext-intl error on Windows

sometimes when downloading CodeIgniter 4 through the official website or through composer and running it with php shark serve sometimes an ext-intl error appears. That means we haven’t fully installed the intl extension. The way to solve this is:

  • Open the php.ini you are using
  • Uncomment the extension extension=intl
  • Then restart the webserver you are using
  • Tutorial to install CodeIgniter 4 on Windows

There are 2 ways to install CodeIgniter 4, namely through the official website and through composer, let’s discuss one by one.

  • Download CodeIgniter 4 on the official website

Go to the CodeIgniter 4 website, namely codeigniter.com/en/download, after downloading move the file to the htdocs folder if using XAMPP

Extract the downloaded ZIP

If you have extracted, please rename the folder to your heart’s content

  • Install Via Composer

Please open your cmd/terminal. Then type the command:

“composer create-project codeigniter4/appstarter project-root”

“cd project-root”

“composer update”

  • Running the CodeIgniter 4 application on Windows
  • Open a browser and type “localhost/ci4/pubic
  • Through the terminal please type “php shark serve”
  • Then open the browser and run localhost:8000, when finished, the default appearance of CodeIgniter 4 will appear and the installation process has been completed.
  • Conclusion and Closing

Now we can enjoy the features of CodeIgniter 4 properly according to the application we want to create. Framework is just a tool. We ourselves use what tools and for what.

The need for digital IT is needed in daily activities, Bead IT Consultant is the right choice as your partner, visit our website by clicking this link: www.beadgroup.com