PHPackages                             sandip-jobin/magika-file-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. sandip-jobin/magika-file-validator

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

sandip-jobin/magika-file-validator
==================================

Custom file type validation for Laravel using magika

1.0.0.x-dev(2y ago)223MITPHPPHP ^8.0

Since May 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sandip-jobin/magika-file-validator)[ Packagist](https://packagist.org/packages/sandip-jobin/magika-file-validator)[ Docs](https://github.com/sandip-jobin/magika-file-validator)[ RSS](/packages/sandip-jobin-magika-file-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da2b9fe8a210911adcd52dd66ac5256157960ccebebe408fa32c9b27a1a0ddab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e6469702d6a6f62696e2f6d6167696b612d66696c652d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sandip-jobin/magika-file-validator)[![Total Downloads](https://camo.githubusercontent.com/a0745a0645ed9563c39feb2d01cc795a67cd2918bc9a60263877331f942c12ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e6469702d6a6f62696e2f6d6167696b612d66696c652d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sandip-jobin/magika-file-validator)

Custom file type validation for Laravel using magika

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

[](#installation)

You can install the package via composer:

```
composer require sandip-jobin/magika-file-validator
```

Usage
-----

[](#usage)

```
use Jobins\MagikaFileValidator\Rules\MagikaFileTypeValidationRule;

$request->validate([
    'file' => [new MagikaFileTypeValidationRule(['pdf', 'jpeg'])]
]);
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please use the issue tracker.

Credits
-------

[](#credits)

- [Jobins](https://github.com/jobins)

License
-------

[](#license)

Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

739d ago

### Community

Maintainers

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

---

Top Contributors

[![sandip-jobin](https://avatars.githubusercontent.com/u/167725862?v=4)](https://github.com/sandip-jobin "sandip-jobin (2 commits)")

---

Tags

jobinsmagika-file-validatormagika

### Embed Badge

![Health badge](/badges/sandip-jobin-magika-file-validator/health.svg)

```
[![Health](https://phpackages.com/badges/sandip-jobin-magika-file-validator/health.svg)](https://phpackages.com/packages/sandip-jobin-magika-file-validator)
```

###  Alternatives

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-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)
