Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined type 'PhpOffice\PhpWord\PhpWord'. #1854

Closed
lluck42 opened this issue Apr 23, 2020 · 2 comments
Closed

Undefined type 'PhpOffice\PhpWord\PhpWord'. #1854

lluck42 opened this issue Apr 23, 2020 · 2 comments

Comments

@lluck42
Copy link

lluck42 commented Apr 23, 2020

composer require phpoffice/phpword

touch main.php

<?
require_once "vendor/autoload.php";
$phpWord = new \PhpOffice\PhpWord\PhpWord();

error:
Undefined type 'PhpOffice\PhpWord\PhpWord'.

@liborm85
Copy link
Contributor

liborm85 commented Jan 2, 2021

I'm test your steps, and it works without problems (only enabled short_open_tag is required, see https://stackoverflow.com/a/2185331)

@lluck42
Copy link
Author

lluck42 commented Jan 4, 2021

thanks, I can see that. and now it works.

I'm test your steps, and it works without problems (only enabled short_open_tag is required, see https://stackoverflow.com/a/2185331)

@lluck42 lluck42 closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants