ZipArchive Adapter

Installation

composer require league/flysystem-ziparchive

Usage

use League\Flysystem\Filesystem;
use League\Flysystem\ZipArchive\ZipArchiveAdapter;
use League\Flysystem\ZipArchive\FilesystemZipArchiveProvider;

$adapter = new ZipArchiveAdapter(
    new FilesystemZipArchiveProvider($pathToZip)
);
$filesystem = new Filesystem($adapter);