1、在ThinkPHP/Library/Vendor下建立phpExcel目录,把PHPExcel中Classes目录下的文件全部拷贝过去;2、在需要使用的地方vendor('phpExcel.PHPExcel');然后就可以:$objPHPExcel= new \PHPExcel();