PHPackages                             markocupic/zip-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. markocupic/zip-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

markocupic/zip-bundle
=====================

Provides a simple ZIP extension for zipping directories recursively.

1.1.2(1y ago)39.7k↓37.5%5MITPHPPHP ^8.2CI failing

Since Aug 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/markocupic/zip-bundle)[ Packagist](https://packagist.org/packages/markocupic/zip-bundle)[ RSS](/packages/markocupic-zip-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (11)Used By (5)

[![Alt text](docs/logo.png?raw=true "logo")](docs/logo.png?raw=true)

Zip extension
=============

[](#zip-extension)

This bundle provides a simple Zip class.

Usage
=====

[](#usage)

```
// Add dir recursive with unlimited depth, add dot files and folders too and store it to a given zip-file
$zip = (new \Markocupic\ZipBundle\Zip\Zip())
    ->ignoreDotFiles(false)
    ->stripSourcePath('path/to/source/dir')
    ->addDirRecursive('path/to/source/dir')
    ->run('path/to/destination/dir/myZip.zip');

// Add dir recursive depth: 1, collect only files and ignore empty folders
$zip = (new \Markocupic\ZipBundle\Zip\Zip())
    ->stripSourcePath('path/to/source/dir')
    ->addDirRecursive('path/to/source/dir', 1, true)
    ->run('path/to/destination/dir/myZip.zip');

// Add a file
$zip = (new \Markocupic\ZipBundle\Zip\Zip())
    ->stripSourcePath('path/to/source/dir')
    ->addFile('path/to/source/dir/myFile.txt')
    ->run('path/to/destination/dir/myZip.zip');

// Add files from a directory
$zip = (new \Markocupic\ZipBundle\Zip\Zip())
    ->stripSourcePath('path/to/source/dir')
    ->addDir('path/to/source/dir')
    ->run('path/to/destination/dir/myZip.zip');

// Add files from a directory
$zip = (new \Markocupic\ZipBundle\Zip\Zip())
   ->stripSourcePath('path')
   ->addDir('path/to/source/dir')
   ->addDir('path/toAnotherDir/source/dir')
   ->run('path/to/destination/dir/myZip.zip');
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~190 days

Recently: every ~386 days

Total

10

Last Release

402d ago

PHP version history (2 changes)1.1.0PHP ^7.4 || ^8.0

1.1.2PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1525166?v=4)[Marko Cupic](/maintainers/markocupic)[@markocupic](https://github.com/markocupic)

---

Top Contributors

[![markocupic](https://avatars.githubusercontent.com/u/1525166?v=4)](https://github.com/markocupic "markocupic (16 commits)")

---

Tags

zipcontaozip recursive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markocupic-zip-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/markocupic-zip-bundle/health.svg)](https://phpackages.com/packages/markocupic-zip-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[inspiredminds/contao-wowjs

Integrates WOW.js for Contao content elements and form fields.

1813.0k](/packages/inspiredminds-contao-wowjs)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
