PHP code example of hizpark / zip-mover

1. Go to this page and download the library: Download hizpark/zip-mover library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hizpark / zip-mover example snippets


use Hizpark\ZipMover\ZipMover;

$mover = new ZipMover();
$mover->compress('/path/to/source-dir');

use Hizpark\ZipMover\ZipMover;

$mover = new ZipMover();
$mover->extract('/path/to/destination-dir');

public function compress(string $srcPath): void;

public function extract(string $destPath): void;

public function clean(): void;
txt
src
├── Exception
│   └── ZipMoverException.php
└── ZipMover.php