PHPackages                             crys/laravel-clamav - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. crys/laravel-clamav

Abandoned → [sunspikes/clamav-validator](/?search=sunspikes%2Fclamav-validator)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

crys/laravel-clamav
===================

ClamAV integration for Laravel 5.5+

v2.0.0(7y ago)27471MITPHPPHP &gt;=7.0.0

Since Jul 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/huncrys/laravel-clamav)[ Packagist](https://packagist.org/packages/crys/laravel-clamav)[ Docs](https://github.com/huncrys/laravel-clamav)[ RSS](/packages/crys-laravel-clamav/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

ClamAV integration for Laravel 5.5+
===================================

[](#clamav-integration-for-laravel-55)

[![Latest Stable Version](https://camo.githubusercontent.com/e4ccdd0fad31cd4474af573d7ff80e85e68164d7ff01173f60fa8635e8e545be/68747470733a2f2f706f7365722e707567782e6f72672f73756e7370696b65732f636c616d61762d76616c696461746f722f762f737461626c65)](https://packagist.org/packages/crys/laravel-clamav)[![License](https://camo.githubusercontent.com/0471e59a93176a0407580965a1577cfb37c313a975376034556b105e39a524d5/68747470733a2f2f706f7365722e707567782e6f72672f73756e7370696b65732f636c616d61762d76616c696461746f722f6c6963656e7365)](https://packagist.org/packages/crys/laravel-clamav)

Custom Laravel 5 anti-virus validator for file uploads.

Requirements
------------

[](#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](http://www.clamav.net/documents/installing-clamav).

For example on an Ubuntu machine, you can do:

```
# 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.

Installation
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org).

Run `composer require crys/laravel-clamav`

Add the following to your `providers` array in `config/app.php`:

```
'providers' => [
	// ...

	Crys\Clamav\ServiceProvider::class,
],
```

Usage
-----

[](#usage)

Use it like any `Validator` rule:

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

Configuration
-------------

[](#configuration)

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

But you can set the `CLAMAV_HOST` environment variable to override this.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2870d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/290318?v=4)[crys](/maintainers/crys)[@crys](https://github.com/crys)

---

Top Contributors

[![sunspikes](https://avatars.githubusercontent.com/u/75611?v=4)](https://github.com/sunspikes "sunspikes (38 commits)")[![huncrys](https://avatars.githubusercontent.com/u/1208344?v=4)](https://github.com/huncrys "huncrys (1 commits)")[![sbine](https://avatars.githubusercontent.com/u/1902973?v=4)](https://github.com/sbine "sbine (1 commits)")

---

Tags

laravelvalidatorvirusclamav

### Embed Badge

![Health badge](/badges/crys-laravel-clamav/health.svg)

```
[![Health](https://phpackages.com/badges/crys-laravel-clamav/health.svg)](https://phpackages.com/packages/crys-laravel-clamav)
```

###  Alternatives

[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
