PHPackages                             csesumonpro/phpzipmaker - 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. csesumonpro/phpzipmaker

ActiveLibrary

csesumonpro/phpzipmaker
=======================

Php zip maker is a simple archive generator composer package. This package can make an archive with selected files &amp; folders and deselect files &amp; folders. This package also provides facilities to set the archive name, extension, and directory where you want to generate the archive.

v1.0.5(3y ago)2151MITPHPPHP ^5.6|^7.0|^8.0

Since Sep 4Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (7)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/35166160724a0987d27929ba61bf4d88585fc9acdaf8d58133f2ab7e0674d852/68747470733a2f2f706f7365722e707567782e6f72672f63736573756d6f6e70726f2f7068707a69706d616b65722f646f776e6c6f616473)](https://packagist.org/packages/csesumonpro/phpzipmaker)[![License](https://camo.githubusercontent.com/1321c029e8d38e717a731d57d22cae00c4c2cda5b421e2a7d470816e5e27dc9f/68747470733a2f2f706f7365722e707567782e6f72672f63736573756d6f6e70726f2f7068707a69706d616b65722f6c6963656e7365)](https://packagist.org/packages/csesumonpro/phpzipmaker)[![Latest Stable Version](https://camo.githubusercontent.com/39ce83bf8f68a6b1d6838b8363bd99aac6fa821a86749b17c2bc48df3a115830/68747470733a2f2f706f7365722e707567782e6f72672f63736573756d6f6e70726f2f7068707a69706d616b65722f762f737461626c65)](https://packagist.org/packages/csesumonpro/phpzipmaker)

> ### PHP Zip Maker
>
> [](#php-zip-maker)

Php zip maker is a simple library to create archive for your project with the selected file or folder.

> ### Installation
>
> [](#installation)

Install the package through [Composer](http://getcomposer.org/).

For PHP 5.6 or 5.6~: ` composer require csesumonpro/phpzipmaker `

**Note: If your project doesn't have any composer.json file, you can use it by downloading the zip file from the github repository.**

> ### Configuration
>
> [](#configuration)

Just need to set an .xml file in your project root with the following code: and the name must be **phpzipmaker.xml**

```

    phpzipmaker
    .zip
    /Volumes/Projects/plugins/phpzipmaker
    /Users/csesumonpro/desktop

        index.php
        config.php

        app/Controllers/HomeController.php

        app
        vendor

        app/Models
        vendor/phpzipmaker

```

> ### XML Description
>
> [](#xml-description)

**archiveName** - The name of the archive file. **(optional)** It will automatically get the name of your project when you do not provide any name.

**archiveExtension** - The extension of the archive file. **(optional)** It will automatically set .zip extension when you do not provide any extension.
***Supported Extensions:***

```
['.zip', '.rar', '.tar', '.gz', '.bz2', '.7z']

```

**archiveFormDirectory** - The directory of the archive file. **(optional)** It will automatically get the directory path of your project when you do not provide any directory path.

**archiveToDirectory** - The directory where the archive file will be saved. **(optional)** It will automatically get the directory path of your project when you do not provide any directory path.

**include-file** - The file that you want to include in the archive file. **(required)**

**exclude-file** - The file that you want to exclude in the archive file. **(optional)**

**include-directory** - The directory that you want to include in the archive file. **(optional)**

**exclude-directory** - The directory that you want to exclude in the archive file. **(optional)**

> ### Usage
>
> [](#usage)

It's very easy to make an archive through the above XML config just run the below command from your project root.

`php ./vendor/csesumonpro/phpzipmaker/phpzipmaker.php`

> ### UseCase
>
> [](#usecase)

Suppose you have a project with the following structure:

```
project
├── app
│   ├── Controllers
│   │   └── HomeController.php
│   ├── Models
│   │   └── User.php
│   └── Views
│       └── home.php
├── vendor
│   ├── autoload.php
│   ├── composer
│   │   ├── autoload_classmap.php
│   │   ├── autoload_files.php
│   │   ├── autoload_namespaces.php
│   │   ├── autoload_psr4.php
│   │   ├── autoload_real.php
│   │   ├── autoload_static.php
│   │   ├── ClassLoader.php
│   │   └── installed.json
│   └── phpzipmaker
│       ├── LICENSE
│       ├── README.md
│       ├── composer.json
│       ├── phpzipmaker.php
│       └── src
│           ├── PhpZipMaker.php
|index.php
|config.php

```

If you want to include a file just use it like this:

```

    index.php

```

If you want to include a file from a directory that directory already excluded you can do it

```

    vendor/phpzipmaker/phpzipmaker.php

```

if you want to include a directory which directory have many other files and directory

```

    app

```

if you want to exclude a file from an included directory you can do it

```

    app/Controllers/HomeController.php

```

If you want to exclude a directory that directory already included you can do it

```

    app/Models

```

> ### Reference
>
> [](#reference)

[Packagist](https://packagist.org/packages/csesumonpro/phpzipmaker) || [Github](https://github.com/csesumonpro/phpzipmaker)

> ### License
>
> [](#license)

The **php zip maker** is an open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~2 days

Total

6

Last Release

1341d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a49db553cc1c44417ef31490ed5d1c1b0f6ec6018f691597648bcc96ff93b72f?d=identicon)[csesumonpro](/maintainers/csesumonpro)

---

Top Contributors

[![csesumonpro](https://avatars.githubusercontent.com/u/29582239?v=4)](https://github.com/csesumonpro "csesumonpro (15 commits)")

### Embed Badge

![Health badge](/badges/csesumonpro-phpzipmaker/health.svg)

```
[![Health](https://phpackages.com/badges/csesumonpro-phpzipmaker/health.svg)](https://phpackages.com/packages/csesumonpro-phpzipmaker)
```

PHPackages © 2026

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