statix-php / sidecar-virus-scan
This is my package sidecar-virus-scan
Requires
- php: ^8.1
- hammerstone/sidecar: ^0.4.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
This package is auto-updated.
Last update: 2024-04-14 03:07:22 UTC
README
This package is built on Laravel Sidecar and ClamAVNet, it provides a very easy way to deploy a robust virus scanning capability for your Laravel applications.
Installation
This package requires that hammerstone/sidecar
has been installed in your Laravel application.
You can install the package via composer:
composer require statix-php/sidecar-virus-scan
You can optionally publish the config file with:
php artisan vendor:publish --tag="sidecar-virus-scan-config"
This is the contents of the published config file:
return [ // ];
Register the ScanForVirusFunction::class
in your sidecar.php
config file.
/* * All of your function classes that you'd like to deploy go here. */ 'functions' => [ \Statix\VirusScan\Functions\ScanForVirusFunction::class, ],
Deploy the Lambda function by running:
php artisan sidecar:deploy --activate
See Sidecar documentation for details.
Usage
$virusScan = new Statix\VirusScan();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.