Home > Backend Development > PHP Tutorial > How to install phpword

How to install phpword

WBOY
Release: 2016-07-06 13:51:24
Original
3807 people have browsed it

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

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

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'

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template