The “Class ‘ZipArchive’ not found” error occurs when we do not have the zip extension enabled or installed; Let's see how we can solve the problem.
Laragon
In Laragon on Windows it is as simple as going to extensions and enabling zip:

Other systems
On other systems, check if the zip Extension is Enabled:
Open the php.ini file in a text editor.
Find the following line:
;extension=zipRemove the semicolon at the beginning of the line to enable the extension:
extension=zipSave the changes and restart your web server and/or PHP.
In Linux environments, you can run the following command in the terminal to install the zip extension:
sudo apt-get install php-zipRestart your web server and/or PHP.
I agree to receive announcements of interest about this Blog.
We will see some tips to solve the problem of “Class ‘ZipArchive’ not found”.