Import Excel file into MySQL using Codeigniter. Step 1:- First, we need to download PHPExcel Library. Step 2:- Create database and table or copy below code and run in mysql for create table. Step 3:- Now create controller file Import.php and copy below code and paste in import.php file