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.5(1y ago)128MITPHPPHP ^7.4 || ^8.0 || 8.1CI passing

Since Nov 1Pushed 1y 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 1mo ago

READMEChangelog (6)Dependencies (9)Versions (7)Used By (0)

ZipIt
=====

[](#zipit)

**ZipIt** is a simple, flexible PHP CLI tool for creating zip archives, providing features like progress bars, customizable output locations, and recursive file archiving. It now includes a `copy` command to duplicate files instead of zipping them.

Features
--------

[](#features)

- **Standalone Executable**: ZipIt is now a fully compiled executable file, which can be stored in your project (e.g., `bin/zipit`).
- **Configurable**: Define the base directory, files to include, and exclusions in a `.zipit-conf.php` file.
- **Customizable Output**: Optionally specify the output file name and path in the configuration file.
- **Recursive Archiving**: Automatically includes directories and their contents.
- **Styled Output**: Uses color-coded messages for warnings, errors, and success feedback.
- **Progress Bar**: Visual progress for long-running operations.
- **Custom Config Path**: Option to specify a custom configuration file path.
- **Copy Command**: Use `bin/zipit copy` to copy files instead of zipping them.

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

[](#installation)

Download the `zipit` executable and place it in your project directory, for example:

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

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

[](#configuration)

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

```
