phpword

利用PHPWord生成你想要word文档 php生成word文档的代码

先安装:

composer require phpoffice/phpword
然后加载,并且实例化,并新增一个空白页:
require 'vendor/autoload.php';
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();

» 阅读全文

关键词: word文档 , phpword