Skip to content

10xjzheng/thinkphpExcelImport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thinkphpExcelImport

thinkphp+phpexcel导入Excel 使用方式:

1.下载phpExcel包放到Vendor文件夹

2.调用函数(函数位于common/function.php)

  1. 数据库脚本demo.sql和测试Excel文件demo.xls都在文件夹内

/**

  • author:10xjzheng
  • Excel导入
  • @param title 导入表格的字段
  • @param tableName 导入表格的名字
  • @param savePath 文件保存的路径,默认在Public/Excel/

*/

function importExcel($tableName,$title,$savePath="Public/Excel/")

About

thinkphp+phpexcel导入Excel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages