All Projects → sunspikes → Clamav Validator

sunspikes / Clamav Validator

Licence: mit
Laravel virus validator based on ClamAV anti-virus scanner

Projects that are alternatives of or similar to Clamav Validator

Laravel Comment
Just another comment system for your awesome Laravel project.
Stars: ✭ 217 (-3.12%)
Mutual labels:  laravel, laravel-package
Sneaker
An easy way to send emails whenever an exception occurs on server.
Stars: ✭ 223 (-0.45%)
Mutual labels:  laravel, laravel-package
Laravel Option Framework
Manage your laravel application's dynamic settings in one place with various supported input types.
Stars: ✭ 194 (-13.39%)
Mutual labels:  laravel, laravel-package
Laravel Localization Helpers
🎌 Artisan commands to generate and update lang files automatically
Stars: ✭ 190 (-15.18%)
Mutual labels:  laravel, laravel-package
Meter
Laravel package to find performance bottlenecks in your laravel application.
Stars: ✭ 204 (-8.93%)
Mutual labels:  laravel, laravel-package
Laravel Castable Data Transfer Object
Automatically cast JSON columns to rich PHP objects in Laravel using Spatie's data-transfer-object class
Stars: ✭ 191 (-14.73%)
Mutual labels:  laravel, laravel-package
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (-11.61%)
Mutual labels:  laravel, laravel-package
Laravel Adminer
Adminer database manager for Laravel 5+
Stars: ✭ 185 (-17.41%)
Mutual labels:  laravel, laravel-package
Hooks
Hooks is a extension system for your Laravel application.
Stars: ✭ 202 (-9.82%)
Mutual labels:  laravel, laravel-package
Voyager Frontend
The Missing Front-end for The Missing Laravel Admin 🔥
Stars: ✭ 200 (-10.71%)
Mutual labels:  laravel, laravel-package
Laravel Bootstrap Components
Bootstrap components as Laravel components
Stars: ✭ 190 (-15.18%)
Mutual labels:  laravel, laravel-package
Web Socket
Laravel library for asynchronously serving WebSockets.
Stars: ✭ 225 (+0.45%)
Mutual labels:  laravel, laravel-package
Validation
The power of Respect Validation on Laravel
Stars: ✭ 188 (-16.07%)
Mutual labels:  validator, laravel
Laravel Userstamps
Laravel Userstamps provides an Eloquent trait which automatically maintains `created_by` and `updated_by` columns on your model, populated by the currently authenticated user in your application.
Stars: ✭ 193 (-13.84%)
Mutual labels:  laravel, laravel-package
Laravel Cross Eloquent Search
Laravel package to search through multiple Eloquent models. Supports sorting, pagination, scoped queries, eager load relationships and searching through single or multiple columns.
Stars: ✭ 189 (-15.62%)
Mutual labels:  laravel, laravel-package
Laravel Surveillance
Put malicious users, IP addresses and anonymous browser fingerprints under surveillance, log the URLs they visit and block malicious ones from accessing the Laravel app.
Stars: ✭ 198 (-11.61%)
Mutual labels:  laravel, laravel-package
Laravel Auth Checker
Laravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.
Stars: ✭ 177 (-20.98%)
Mutual labels:  laravel, laravel-package
Laravel Identify
📦 📱 Laravel 5 Package to Detect Users Browsers, Devices, Languages and Operating Systems
Stars: ✭ 177 (-20.98%)
Mutual labels:  laravel, laravel-package
Voyager Hooks
Hooks system integrated into Voyager.
Stars: ✭ 200 (-10.71%)
Mutual labels:  laravel, laravel-package
Laravel State Machine
Winzou State Machine service provider for Laravel
Stars: ✭ 213 (-4.91%)
Mutual labels:  laravel, laravel-package

ClamAV Virus Validator For Laravel

SensioLabsInsight Code Coverage Code Quality Build Status Latest Stable Version License

A custom Laravel virus validator based on ClamAV anti-virus scanner for file uploads.

Requirements

You must have ClamAV anti-virus scanner running on the server to make this package work.

You can see the ClamAV installation instructions on the official ClamAV documentation.

For example on an Ubuntu machine, you can do:

# Install clamav virus scanner
sudo apt-get update && sudo apt-get 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. You will also need to have sockets extension installed and enabled (all executions without this module will fail with this error - "Use of undefined constant 'AF_INET'").

Installation

1. Install the package through Composer.

$ composer require sunspikes/clamav-validator

2. Add the service provider (for Laravel 5.4 or below)

This package supports Laravel new Package Discovery.

If you are using Laravel < 5.5, you need to add Sunspikes\ClamavValidator\ClamavValidatorServiceProvider::class to your providers array in config/app.php:

'providers' => [
	// ...

	Sunspikes\ClamavValidator\ClamavValidatorServiceProvider::class,
],

3. Publish assets from the the vendor package

Config file

The default configuration file does use ENV to override the defaults. If you want to change the configuration file anyway you run the following command to publish the package config file:

php artisan vendor:publish --provider="Sunspikes\ClamavValidator\ClamavValidatorServiceProvider" --tag=config

Once the command is finished you should have a config/clamav.php file that will be used as well.

Language files

If you want to customize the translation or add your own language you can run the the following command to publish the language files to a folder you maintain:

php artisan vendor:publish --provider="Sunspikes\ClamavValidator\ClamavValidatorServiceProvider" --tag=lang

This will copy the language files to resources/lang/vendor/clamav-validator for Laravel >= 5.1

Usage

Use it like any Validator rule:

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

Author

Krishnaprasad MG [@sunspikes] and other awesome contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].