PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Error: Class "ZipArchive" not found (0) En el archivo I:\MisWebs\test\vendor\phpoffice\phpword\src\PhpWord\Shared\ZipArchive.php en la línea: 138

Open Lobo-Blanco opened this issue 1 year ago • 3 comments

Describe the Bug

A clear and concise description of what the bug is.

Steps to Reproduce

Please provide a code sample that reproduces the issue.

<?php
require __DIR__ . '/vendor/autoload.php';

$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$section->...

Expected Behavior

A clear and concise description of what you expected to happen.

Current Behavior

What is the current behavior?

Context

Please fill in your environment information:

  • PHP Version:
  • PHPWord Version:

Lobo-Blanco avatar Mar 29 '24 22:03 Lobo-Blanco

it seams that your system miss the php zip extension https://www.php.net/manual/en/class.ziparchive.php

gimler avatar Apr 09 '24 06:04 gimler

@Lobo-Blanco Have you checked the answer of @gimler ?

Progi1984 avatar Aug 16 '24 19:08 Progi1984