Giter VIP home page Giter VIP logo

zipper's Introduction

This is Zipper library.

Description

  • It provides availability for archive (zip) files protected with password.

  • It uses php zip (ZipArchive) library.

Examples

For archivе files with password:

Usage

$zipFile = __DIR__ . '/../../archive.zip';
$zipper = ZipperBuilder::aZip()->withOutput($zipFile)
    ->addFile(__DIR__ . '/file1.txt')
    ->addFile(__DIR__ . '/file2.doc')
    ->addFile(__DIR__ . '/file3.png')
    ->withPassword('MegaStrongPassword')
    ->withAESEncryption(true)
    ->archive();

Method Description

ZipperBuilder::aZip() // return instance of Builder class
 ->withOutput($path) // set ouput archive file
 ->addFile($file) // adding file to collection that will be archive
 ->withPassword($password) // optional if you want to set password for archive
 ->withAESEncryption(true) // optional (default value is false) set whether you want AES-256 encryption (supported by php 7.2 and upper)
 ->archive() // void method that performs necessary checks and creates zip archive

Resources

zipper's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.