PHPackages                             devuri/zipit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. devuri/zipit

ActiveLibrary[File &amp; Storage](/categories/file-storage)

devuri/zipit
============

A simple and flexible tool for creating zip archives.

v0.2.9(2mo ago)156MITPHPPHP ^7.4 || ^8.0 || 8.1CI passing

Since Nov 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/devuri/zipit)[ Packagist](https://packagist.org/packages/devuri/zipit)[ Docs](https://github.com/devuri/zipit)[ RSS](/packages/devuri-zipit/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (18)Versions (13)Used By (0)

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
--------

[](#features)

- **Standalone Executable**: ZipIt is a fully compiled executable, ready to drop into your project (e.g., `bin/zipit`).
- **Configurable**: Define the base directory, files to include, and exclusions in a `.zipit-conf.php` file.
- **File Remapping**: Map a source file to a different destination path in the output using `'source' => 'dest'` syntax.
- **Customizable Output**: Optionally specify the output file name and path in the configuration file.
- **Recursive Archiving**: Automatically includes directories and their contents.
- **Styled Output**: Color-coded messages for warnings, errors, and success feedback.
- **Progress Bar**: Visual progress tracking for long-running operations.
- **Custom Config Path**: Optionally specify a configuration file path as a CLI argument.
- **Copy Command**: Use `bin/zipit copy` to copy files to a directory instead of zipping them.

Installation
------------

[](#installation)

Download the `zipit` executable and place it in your project:

```
mv zipit bin/zipit
chmod +x bin/zipit
```

Configuration
-------------

[](#configuration)

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

```
