Home  >  Article  >  Backend Development  >  How to install phpword

How to install phpword

WBOY
WBOYOriginal
2016-07-06 13:51:243769browse

Development environment: wamp;
php version: 5.5.12
Cause of occurrence:
I can’t use Composer,
PHPword can’t be used for local testing,

How to install phpword

How to install phpword
Need to solve the problem:

<code>如何安装PHPword
</code>

Reply content:

Development environment: wamp;
php version: 5.5.12
Cause of occurrence:
I can’t use Composer,
PHPword can’t be used for local testing,

How to install phpword

How to install phpword
Need to solve the problem:

<code>如何安装PHPword
</code>

<code><?php
require_once 'bootstrap.php';//加上这句 试试

// Creating the new document...
$phpWord = new \PhpOffice\PhpWord\PhpWord();</code>

You have installed it with composer, then just add this sentence at the top, and other composer will help you
require_once 'vendor/autoload.php'

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn