PHPackages                             hamaelt/zip-mime-type-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. hamaelt/zip-mime-type-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

hamaelt/zip-mime-type-validator
===============================

Laravel zip file mime type validator

1.0.1(4y ago)07PHPPHP ^7.4|^8.0

Since Jul 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hamaelt/zip-mime-type-validator)[ Packagist](https://packagist.org/packages/hamaelt/zip-mime-type-validator)[ RSS](/packages/hamaelt-zip-mime-type-validator/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (4)Versions (4)Used By (0)

laravel-zip-mime-type-validator
===============================

[](#laravel-zip-mime-type-validator)

A validation rule for validating MIME type of zip files for Laravel to validate that the zip file only contains the allowed file types.

Installation
============

[](#installation)

```
$ composer require hamaelt/zip-mime-type-validator
```

Requirement
===========

[](#requirement)

- PHP **7.4** or higher

Usage
=====

[](#usage)

In your custom request class use `ZipMimeType` rule with passing the required file types as a string.

```
use Hamaelt\ZipValidator\Rules\ZipMimeType;;

public function rules()
{
    return [
        'zip_file' => [ 'required',new ZipMimeType('pdf,jpg,png')],
    ];
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

1772d ago

### Community

Maintainers

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

---

Top Contributors

[![hamaelt](https://avatars.githubusercontent.com/u/26070991?v=4)](https://github.com/hamaelt "hamaelt (9 commits)")

---

Tags

laravelvalidationzipmime-typezip validation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hamaelt-zip-mime-type-validator/health.svg)

```
[![Health](https://phpackages.com/badges/hamaelt-zip-mime-type-validator/health.svg)](https://phpackages.com/packages/hamaelt-zip-mime-type-validator)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[orkhanahmadov/laravel-zip-validator

Laravel ZIP file content validator

12424.9k](/packages/orkhanahmadov-laravel-zip-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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