hamaelt/virus-scanner-laravel
Composer 安装命令:
composer require hamaelt/virus-scanner-laravel
包简介
README 文档
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');
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-07-20