How to enable ZipArchive for PHP

Is your PHP saying that it cannot find the ZipArchive class? If so, then this post will show you how the enable the ZipArchive module. Let fix the ???Class ???ZipArchive??? not found??? error! We will explore why this error occurs, and how to enable ZipArchive on Docker and Ubuntu. Also, see why Windows users are not affected.