Download the PHP package originphp/zip without Composer

On this page you can find all versions of the php package originphp/zip. 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 zip

Zip

license build coverage

A ZIP utility for creating and unziping ZIP files.

Installation

To install this package

Static Methods

The static methods provide a quick way to zip and unzip archives.

Create a ZIP Archive

To create a ZIP archive using a file or directory

You can also ZIP multiple files or directories

You can also pass any of the following options keys

To encrypt files with passwords you need to be using PHP 7.3 or above.

Unzip a ZIP Archive

To unzip a ZIP file

If any of the files are encrypted you provide a password like this

Fluent Interface

The ZIP class also provides a fluent interface for working with ZIP archives.

Create a ZIP Archive

To create a new ZIP and files and directories. When you add a directory it will add all files and sub directories recursively.

Encryption

To encrypt files with passwords you need to be using PHP 7.3 or above.

To encrypt all the files in the archive, call the encrypt method after adding the files, you can optionally supply the encryption method. Supported encryption methods are aes128,aes192 and aes256.

If just want to encrypt certain files

Compression

If you just want to store a file in the ZIP archive without compression you can set compress to false.

Unzip a ZIP Archive

To extract files from a ZIP file

If the ZIP file has encrypted files

You can also extract selected files

Listing contents

To list contents of a ZIP file

This will output like this

You can also just list files from within a folder of the ZIP file

Getting contents of a file

To get the contents of a file

Renaming

To rename a file in a ZIP archive

Deleting Files

To delete a file from a ZIP archive


All versions of zip with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
ext-zip Version *
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 originphp/zip contains the following files

Loading the files please wait ....