devnix/zip-exception

Basic exception class to get a more verbose exception message from ZipArchive class

0.1.1 2020-02-11 15:50 UTC

This package is auto-updated.

Last update: 2024-11-12 02:49:35 UTC


README

Dumb package to get a more verbose error mesagge from class ZipArchive

Installation

composer install

Usage

<?php

use Devnix\ZipException\ZipException;

$zip = new ZipArchive();

if (!$zipStatus = $zip->open($tmpZip)) {
    throw new ZipException($zipStatus);
}

// ...