PHPackages                             jobins-devs/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. jobins-devs/magika-file-validator

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

jobins-devs/magika-file-validator
=================================

Custom file type validation for Laravel using magika

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

Since May 3Pushed 2y agoCompare

[ Source](https://github.com/jobins-devs/magika-file-validator)[ Packagist](https://packagist.org/packages/jobins-devs/magika-file-validator)[ Docs](https://github.com/sandip-jobin/magika-file-validator)[ RSS](/packages/jobins-devs-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/200d4fe84864326ed56bafb83b8873802e5a50cfa905599bf392efefb94ed118/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f62696e732d646576732f6d6167696b612d66696c652d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jobins-devs/magika-file-validator)[![Total Downloads](https://camo.githubusercontent.com/877d34351fcb18090a8e235d95d0806868794686b8e65a408a28ba618c8838d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f62696e732d646576732f6d6167696b612d66696c652d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jobins-devs/magika-file-validator)

Custom file type validation for Laravel using magika

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

[](#installation)

You can install the package via composer:

```
composer require jobins-devs/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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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

738d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09dcd46e957b8240906fc7432196d643f4f1f66d05c82cb0391dbb6018edbaa7?d=identicon)[jobins-devs](/maintainers/jobins-devs)

---

Top Contributors

[![jobins-devs](https://avatars.githubusercontent.com/u/114974476?v=4)](https://github.com/jobins-devs "jobins-devs (2 commits)")[![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/jobins-devs-magika-file-validator/health.svg)

```
[![Health](https://phpackages.com/badges/jobins-devs-magika-file-validator/health.svg)](https://phpackages.com/packages/jobins-devs-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)
