sandip-jobin/magika-file-validator

Custom file type validation for Laravel using magika

dev-main 2024-05-07 10:54 UTC

This package is not auto-updated.

Last update: 2024-05-08 23:55:50 UTC


README

Latest Version on Packagist Total Downloads

Custom file type validation for Laravel using magika

Installation

You can install the package via composer:

composer require sandip-jobin/magika-file-validator

Usage

use Jobins\MagikaFileValidator\Rules\MagikaFileTypeValidationRule;

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

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

Please see License File for more information.