1.下载phpword,放在thinkphp的ThinkPHP\Library\Vendor
目录下;
2.引用:
vendor("phpword");
require_cache(VENDOR_PATH.'phpword/PHPWord.php');
$PHPWord = new \PHPWord();
3、中文化
https://www.jianshu.com/p/6c6fd73a58f0
1.下载phpword,放在thinkphp的ThinkPHP\Library\Vendor
目录下;
2.引用:
vendor("phpword");
require_cache(VENDOR_PATH.'phpword/PHPWord.php');
$PHPWord = new \PHPWord();
3、中文化
https://www.jianshu.com/p/6c6fd73a58f0
本文标题:thinkphp中使用phpword
本文链接:https://www.haomeiwen.com/subject/uljfnxtx.html
网友评论