Archive

Create zip archive with file/folder.

Installation

composer require mediashare/kernel
Bash

Code

<?php
// ./index.php
require 'vendor/autoload.php';
use Mediashare\Kernel\Kernel;

$kernel = new Kernel();
$kernel->run();
$archive = $kernel->get('Archive');

$archive->setSource(__DIR__.'/images');
$archive->setDestination(__DIR__.'/backup.zip');
$archive->run();
PHP

MarquandT

Ethical Hacker ~ Web Developper ~ Hosting Provider ~ Crypto Enthusiast ~ Automation Expert Bitcoin donation: 32Uu4NKGnxSPC7UukYXVyRHwbppbQpKVki

Comments

You must login to send a comment.