Download the PHP package ricardoapaes/dunzip2 without Composer

On this page you can find all versions of the php package ricardoapaes/dunzip2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dunzip2

dUnzip2

Originally taken from phpclasses.org, made by Alexandre Tedeschi. I will leave the link below for consultation.
dUnzip2: Pack and unpack files packed in ZIP archives

Pack and unpack files packed in ZIP archives This package can be used to pack and unpack files in ZIP archives.

There is a class that can retrieve the list of packed files as well several types of file details, such as the uncompressed size, last modification time, comments, etc..

The class can extract individual files, one at a time, specifying their file names, or extract all at once into a given directory.

There is another class that can pack files into new ZIP archives.

The classes use the usual PHP file access functions and gzip extension functions.


How does it work

] The class open the give ZIP File, and move the internal pointer ] to list all the files zipped on it. The returned values are ] stored in the public variable 'compressedList'. These can be ] returned by the public method 'getList()'. ] ] It also has Central Directory support. Means that the ZIP may contain ] additional information for each file or directory, like external ] attributes and comments. The variables are stored in the public ] variable 'dirSignature'. These should be returned for each file ] by using the public method 'getExtraInfo(fileName)'. If no extra ] information available, the method will return 'false'. ] ] After getting file list, you may want to unzip some of them. There are ] two ways to do this... They are descripted below. ] ] You can also get ZIP file details like file comments by calling the ] method 'getZipInfo([detail])'. If you give 'detail' var, only the ] given information will be returned, else it will return everything. ] ] Warning: To use the ZIP file by another script, you must first free it ] from the dUnzip2 class. For this, call the method 'close()'... It is ] auto-called on class destroyed (if PHP5), and terminate the file handler.


Unzipping files


Understanding internal and external_attributes (Both returned by using method getExtraInfo)


Examples

Using this class, you can:

Using this class, you cannot:

How to use? $zip = new dUnzip("file_to_unzip.zip"); $zip->debug = 1; // debug?

Then, choose one way...

List all the files compressed

getList(void)

$list = $zip->getList(); foreach($list as $fileName=>$zippedFile) echo "$fileName ($zippedFile[uncompressed_size] bytes)
";

Unzip some file:

unzip($fileName [,$targetFilename])

echo $zip->unzip("test.txt"); // To a variable $zip->unzip("test.txt", "test.txt"); // To a filename

Unzip the whole ZIP file

unzipAll([$targetDir[, $baseDir[, $maintainStructure]]])

$zip->unzipAll('uncompressed');


All versions of dunzip2 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ricardoapaes/dunzip2 contains the following files

Loading the files please wait ....