{"id":26282111,"url":"https://github.com/mazahirharoon/read_excel-codeigniter","last_synced_at":"2026-05-20T03:36:25.374Z","repository":{"id":97225716,"uuid":"119389026","full_name":"MazahirHaroon/Read_Excel-Codeigniter","owner":"MazahirHaroon","description":"PHP (Codeigniter) code to read excel sheets and insert (or update) data to SQL table","archived":false,"fork":false,"pushed_at":"2018-01-29T15:27:00.000Z","size":3483,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-14T16:44:19.575Z","etag":null,"topics":["codeigniter","codeigniter3","excel","excelreader","php","xlsx"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MazahirHaroon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-29T13:54:36.000Z","updated_at":"2018-01-29T15:32:36.000Z","dependencies_parsed_at":"2023-03-18T16:02:56.602Z","dependency_job_id":null,"html_url":"https://github.com/MazahirHaroon/Read_Excel-Codeigniter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MazahirHaroon/Read_Excel-Codeigniter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MazahirHaroon%2FRead_Excel-Codeigniter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MazahirHaroon%2FRead_Excel-Codeigniter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MazahirHaroon%2FRead_Excel-Codeigniter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MazahirHaroon%2FRead_Excel-Codeigniter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MazahirHaroon","download_url":"https://codeload.github.com/MazahirHaroon/Read_Excel-Codeigniter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MazahirHaroon%2FRead_Excel-Codeigniter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33244783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T03:30:51.439Z","status":"ssl_error","status_checked_at":"2026-05-20T03:30:49.443Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","codeigniter3","excel","excelreader","php","xlsx"],"created_at":"2025-03-14T16:39:24.534Z","updated_at":"2026-05-20T03:36:25.368Z","avatar_url":"https://github.com/MazahirHaroon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Read_Excel-PHP\nA PHP (Codeigniter) code to read excel sheets and insert (or update) data to SQL table\n\n### Technologies used ###\n* [Codeigniter Version 3](https://codeigniter.com/) \n* PHP 7.0.10\n* MySQL 5.7.14\n* Uses [PhpSpreadsheet Library](https://github.com/PHPOffice/PhpSpreadsheet) \n\n## Contents:\n1. Source Code: \n\t* A controller function 'updateTable' to read excel file and create an array of arrays.\n\t* A modal function 'updateCityTable' to insert the array to the database table.\n2. A test excel file 'test_data' with one sheet 'City'.\n3. A SQL file 'excel.sql' to create the table (As per the sheet in the excel file) \n4. PhpSpreadSheet Libary files.\n\n### How do I get set up? ###\n\n* To run server side code locally you can use LAMP, WAMP, MAMP, or XAMP\n* Clone the file and make the necessary changes. \n\t\n\t- .\\application\\config\\config.php\n\t\t* Change $base_url\n\n\t- .\\.htaccess\t\n\t\t* RewriteBase \\foldername\n    \n \t- .\\application\\config\\database.php\n\t\t* Change the databasse name, username and password\n \n * Create a database and import excel.sql file into it, to create the table as per the sheet in the excel file. \n \n(Read this [Documentation](https://codeigniter.com/user_guide/) for issues regarding Codeigniter)\n  \n### How to run the code? ###\nGo to the link http://localhost/\"your_base_url_here_if_any\"/Read_Excel-PHP/mainctrl/UpdateTable\nAnd the table you have created should be populated with the data.\nPS: I have switched of the databse debug in .\\application\\config\\database.php, for debugging purpose change the line,\n\t* 'db_debug' =\u003e FALSE, To\n\t* 'db_debug' =\u003e (ENVIRONMENT !== 'production')\n\n### PhpSpreadsheet Library ###\nMake sure that you download the latest version of `PhpSpreadsheet Library` file from\nthe releases section **[here](https://github.com/PHPOffice/PhpSpreadsheet)**.\n(The vendor folder contains the downloaded PhpSpreadsheet Library files in this project)\n\n### Who do I talk to? ###\n* [Mazahir Haroon](mailto:mazahirharoon@gmail.com?Subject=Regarding%20Read_Excel-PHP)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazahirharoon%2Fread_excel-codeigniter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazahirharoon%2Fread_excel-codeigniter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazahirharoon%2Fread_excel-codeigniter/lists"}