To Install CodeIgniter 4, we need a PHP version, few PHP extensions and a database driver.
System PHP version should be 7.2 or greater than that.
How to Check PHP version?
There several ways to check what PHP version you are using. The simplest is via CLI command or by making a php file for information.
By Using Terminal
Open terminal and type this command to check PHP version –
$ php --version
You will get your current active PHP version.
By Creating PHP File
Back to your localhost directory. Create a file with any name say info.php.
Open file and write this code into it.
Start your server.
Opon browser and type URL like http://localhost/info.php
You should get your current active PHP version.
Required PHP Extensions
Additionally, we need few PHP extensions while installing CodeIgniter 4.
You need to make sure, these following extensions should be enabled.
- intl extension
- mbstring extension
- php-json extension
- php-mysqlnd extension
- php-xml extension
- curl extension
Database Driver Required
A database is required for most web application programming. Currently supported databases are:
- MySQL (5.1+) via the MySQLi driver
- PostgreSQL via the Postgre driver
- SQLite3 via the SQLite3 driver
- MSSQL via the SQLSRV driver (version 2005 and above only)
Hi, I am Sanjay the founder of Online Web Tutor. I welcome you all guys here to join us. Here you can find the web development blog articles. You can add more skills in web development courses here.
I am a Web Developer, Motivator, Author & Blogger. I also used to take online classes including tech seminars over web development courses. We also handle our premium clients and delivered up to 50+ projects.