hamaelt / virus-scanner-laravel
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hamaelt/virus-scanner-laravel
Requires
- ext-sockets: *
- illuminate/support: *
This package is not auto-updated.
Last update: 2025-11-07 04:46:48 UTC
README
A validation rule for validating MIME type of zip files for Laravel to validate that the zip file only contains the allowed file types.
Requirement
- PHP 8+
- PHP Extension
socket - Laravel 8+
Installation
composer require hamaelt/virus-scanner
Publish config files
php artisan vendor:publish --provider="Hamaelt\VirusScanner\Providers\ServiceProvider"
The service provider will automatically be registered. However , you can manually add the service provider to your app/config.php file
'providers' => [
//...
"Hamaelt\VirusScanner\Providers\ServiceProvider::class"
];
Implementation
Dependency inject the class VirusScanner.php
$virusScanner->isVirus('filepath');