Development environment: wamp;
php version: 5.5.12
Cause of occurrence:
I can’t use Composer,
PHPword can’t be used for local testing,
Need to solve the problem:
<code>如何安装PHPword </code>
Development environment: wamp;
php version: 5.5.12
Cause of occurrence:
I can’t use Composer,
PHPword can’t be used for local testing,
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'