Uncaught Error: Class 'ZipArchive' not found in /volume1/web/test/vendor/phpoffice/phpword/src/PhpWord/Shared/ZipArchive.php on line 135 code example
Example: ziparchive laravel not found
For the ZipArchive class to be present, PHP needs to have the zip extension installed.
See this page for installation instructions (both Linux and Windows).