根据的推断,如果我通过composer安装PHPWord,我就不会注册自动加载器。请参见:
It is recommended that you install the PHPWord library through composer.To do so, add the following lines to your composer.json.require_once 'path/to/PhpWord/src/PhpWord</
我正在尝试安装phpdocx,我试图通过composer安装它,我执行了以下命令然后我输入了这个网址:
http://localhost/PHPWordIt is generated by Composer.Use 'install --prefer-source' or 'update --prefer-source' Composer commands to move forwa
我正在创建一个自定义的php项目,使用https://github.com/PHPOffice/PHPWord导出docx文件。在我的本地主机上成功测试后,我将它部署在服务器上,但不幸的是,我收到了这个错误: The file PhpOffice\PhpWord\TemplateProcessor.php is missing/template/template.docx';
$templateProcessor = new \PhpOffice\PhpWord\Temp
为此,我使用PHPOffice/PHPWord"phpoffice/phpword": "dev-master"
而不是更新composer。我没有在AppKernel中注册它,因为如果我添加new PhpOffice\PhpWord\PhpWord(),就会出现错误Method getname is not defined.。