PHP script to load data from CSV files into a database. In pure php, without any framework and third-party libraries. It works only through the console. Tested on PHP 7.4 in Linux.
- Clone project and go to the app directory:
$ git clone [email protected]:henryh/csvimport.git
$ cd csvimport
- Edit MySQL database connection in app/config.php
- Run db migration:
$ php dbmigrate.php
- Run script:
$ php csvimport.php