import("Org.Util.PHPExcel");
$objPHPExcel= new \PHPExcel();
//设置excel属性 //可以不写
$objPHPExcel->getProperties()->setCreator("JAMES")
->setLastModifiedBy("JAMES")
->setTitle("zltrans")
->setSubject("Dorder")
->setDescription("Dorder List")
->setkeywords("Dorder")
->setCategory("Test result file");
原文地址:http://jwb121.blog.51cto.com/11162346/1745945