How to import and export an excel file to database in Cakephp3

How to import and export an excel file to database in Cakephp3

I’m pretty hopeless and plz if someone can help . Many thanks ~

To export:

To import you can use the box/spout too just check api example
http://opensource.box.com/spout/getting-started/#reader