作曲家需要 cshaptx4869/html2word
addFile('resource/tpl.html') ->eraseLink() ->fetchImg('http://php.test/html2word') ->makeFile('resource/a.doc'); MhtFileMaker::getInstance() ->addFile('resource/tpl.html') ->eraseLink() ->fetchImg('http://php.test/html2word') ->makeFile('resource/a.doc'); // 2、浏览器下载 Html2WordMaker::getInstance() ->addFile('resource/tpl.html') ->fetchImg('http://php.test/html2word') ->download(); MhtFileMaker::getInstance() ->addFile('resource/tpl.html') ->fetchImg('http://php.test/html2word') ->download();