2017 © Pedro PelĂĄez
 

library laravel-clamav

ClamAV integration for Laravel 5.5+

image

crys/laravel-clamav

ClamAV integration for Laravel 5.5+

  • Tuesday, July 3, 2018
  • by crys
  • Repository
  • 1 Watchers
  • 0 Stars
  • 101 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 24 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ClamAV integration for Laravel 5.5+

Latest Stable Version License, (*1)

Custom Laravel 5 anti-virus validator for file uploads., (*2)

Requirements

You must have ClamAV anti-virus scanner running on the server to make this package work., (*3)

You can see the ClamAV installation instructions on the official ClamAV documentation., (*4)

For example on an Ubuntu machine, you can do:, (*5)

# Install clamav virus scanner
sudo apt update && apt install -y clamav-daemon

# Update virus definitions
sudo freshclam

# Start the scanner service
sudo systemctl enable --now clamav-daemon clamav-freshclam

This package is not tested on windows, but if you have ClamAV running (usually on port 3310) it should work., (*6)

Installation

Install the package through Composer., (*7)

Run composer require crys/laravel-clamav, (*8)

Add the following to your providers array in config/app.php:, (*9)

'providers' => [
    // ...

    Crys\Clamav\ServiceProvider::class,
],

Usage

Use it like any Validator rule:, (*10)

$rules = [
    'my_file_field' => 'clamav',
];

Configuration

By default the package will try to connect the clamav daemon via the default unix socket (/var/run/clamav/clamd.ctl), (*11)

But you can set the CLAMAV_HOST environment variable to override this., (*12)

The Versions

03/07 2018

dev-master

9999999-dev https://github.com/huncrys/laravel-clamav

ClamAV integration for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel validator clamav virus

03/07 2018

v2.0.0

2.0.0.0 https://github.com/huncrys/laravel-clamav

ClamAV integration for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel validator clamav virus