Join WhatsApp ChannelJoin Now

How to install CodeIgniter 4

CodeIgniter 4 PHP version 7.3 or newer is required, with the *intl* extension and *mbstring* extension installed. The earlier version requires a minimum PHP 5.3 version or higher.

In this article, I show how you install the Codeigniter 4 project

  1. Enable extensions
  2. Manual Install
  3. Using composer
  4. Run

Step 1:- Enable extensions

Open php.ini file to enable intl and mbstring extension.
Search extension in the file.

extension=intl.dll
extension=mbstring.dll

Remove semicolon (;) if exists to enable the extension.
Restart xampp server.

Step 2:- Manual Install

  1. Download CodeIgniter 4 zip file from here.
  2. Copy in the htdocs/ folder and extract it.
  3. Rename the folder (e.g. codeigniter4).

Step 3:- Using composer

Run the following command

composer create-project codeigniter4/appstarter project-root

install CodeIgniter 4 with composer

Step 4:- Run

Run the project public/ folder.

http://localhost/YOUR_FOLDER_NAME/public/

Recommended Posts