Download the PHP package devuri/zipit without Composer

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

ZipIt

ZipIt is a simple, flexible PHP CLI tool for creating zip archives and copying build files. It features progress bars, customizable output locations, recursive file archiving, and file remapping — so files can be stored under one path locally but land at a different path in the output.

Features

Installation

Download the zipit executable and place it in your project:

Configuration

Create a .zipit-conf.php file in your project root. This file must return an array with the following keys:

Configuration Keys

Key Required Description
baseDir Yes Root directory for all source paths. All paths in files and exclude are relative to this.
files Yes Files and directories to include. Supports plain strings and source => dest remapping (see below).
exclude No Files and directories to exclude. Paths are relative to baseDir.
outputDir No Output directory. Defaults to a timestamped directory if not set.
outputFile No Output filename. Defaults to project-archive-{timestamp}.zip if not set.

File Remapping

By default, every entry in files preserves its path relative to baseDir in the output. If you need a file to land at a different path in the output, use 'source' => 'destination' syntax:

Plain string entries and remapped entries can be mixed freely. Remapping only applies to individual files; directories always recurse using their natural relative path.

Usage

Run ZipIt from your project root. It will look for .zipit-conf.php in the current directory by default, or you can pass a path explicitly:

Copy Command

To copy files to a directory instead of creating a zip archive:

The copy command uses the same .zipit-conf.php configuration, including file remapping.

Example

Given this directory structure:

With this .zipit-conf.php:

Running bin/zipit will produce build/my-project.zip containing:

Output

On completion, ZipIt prints a summary including the full list of files processed, total file count, total size, and the output location. Warnings are shown for any configured files that could not be found — and the command exits with a non-zero status if any entries were missing, making it safe to use in CI pipelines.

Requirements

License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy easy archiving with ZipIt!


All versions of zipit with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0 || 8.1
symfony/console Version ^5.4
symfony/filesystem Version ^5.4
composer/ca-bundle Version ^1.5
symfony/var-dumper Version ^5.4
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 devuri/zipit contains the following files

Loading the files please wait ...