CodeIgniter 4 requires PHP version 7.2 or higher. The earlier version requires a minimum PHP 5.3 version or higher.

There is now public directory like in other frameworks. You can now separate the application from the resources (like CSS, JS, files.).

It is much more difficult for attackers.

In this tutorial, I show how you can install the Codeigniter 4 project on Windows and Mac.

How to install CodeIgniter 4 on windows and mac


Contents

  1. Enable extensions
  2. Manual Installation
  3. Using composer
  4. Run
  5. Conclusion

1. Enable extensions

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

OR

extension=php_intl.dll
extension=php_mbstring.dll
  • Remove semicolon (;) if exists to enable the extension.
  • Restart the server.

2. Manual Installation

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

How to install CodeIgniter 4 on windows and mac

#codeigniter #php

How to install CodeIgniter 4 on Windows and Mac
15.60 GEEK