PHPackages                             cakedc/cakephp-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. [Security](/categories/security)
4. /
5. cakedc/cakephp-clamav

ActiveCakephp-plugin[Security](/categories/security)

cakedc/cakephp-clamav
=====================

cakedc/cakephp-clamav plugin for CakePHP

2.0.0(3y ago)110.5k1MITPHPCI failing

Since Aug 20Pushed 2y ago5 watchersCompare

[ Source](https://github.com/CakeDC/cakephp-clamav)[ Packagist](https://packagist.org/packages/cakedc/cakephp-clamav)[ RSS](/packages/cakedc-cakephp-clamav/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

CakeDC\\Clamav for CakePHP
==========================

[](#cakedcclamav-for-cakephp)

[![Build Status](https://camo.githubusercontent.com/d5b9671a48511e6f91473d08c2896b896adfb3b8677a04e775192fed8e75cfe2/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f63616b6564632f63616b657068702d636c616d61762e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/cakedc/cakephp-clamav)[![Coverage Status](https://camo.githubusercontent.com/a65e1e6c0690e51abf7517b427ac26133bcc43599b50c8037664465b065097a9/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f63616b6564632f63616b657068702d636c616d61762e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/cakedc/cakephp-clamav)[![Downloads](https://camo.githubusercontent.com/676ceef933056e04bb33b1c8b814adf0860e2944f9923747dcc1dab8a6e53219/68747470733a2f2f706f7365722e707567782e6f72672f63616b6564632f63616b657068702d636c616d61762f642f746f74616c2e706e67)](https://packagist.org/packages/cakedc/cakephp-clamav)[![Latest Version](https://camo.githubusercontent.com/e5513c0497262b0cd7baf2a676e4c668cccf762fc81aff28efea103a9d050d3d/68747470733a2f2f706f7365722e707567782e6f72672f63616b6564632f63616b657068702d636c616d61762f762f737461626c652e706e67)](https://packagist.org/packages/cakedc/cakephp-clamav)[![License](https://camo.githubusercontent.com/182018efe348c8ffb1395abb12c10d2e9652b72f2acd08a4dc4bdb5489b02518/68747470733a2f2f706f7365722e707567782e6f72672f63616b6564632f63616b657068702d636c616d61762f6c6963656e73652e737667)](https://packagist.org/packages/cakedc/cakephp-clamav)

ClamAV integration with CakePHP via Validator

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

[](#requirements)

- CakePHP 3.8.0+
- PHP 7.2+
- Clamd (daemon) up and running, connection via socket

Setup
-----

[](#setup)

`composer require cakedc/cakephp-clamav`

- Ensure clamav is up and running as daemon
- Configure the plugin using

```
\Cake\Core\Configure::write('CakeDC/Clamav', [
    // WARNING, disabling will SKIP virus check in validation rules
    'enabled' => true,
    // clamd listening in this socket, defaults to unix file socket
    'socketConfig' => [
        'host' => 'unix:///var/run/clamav/clamd.ctl',
        'port' => null,
        'persistent' => true
    ],
]);
```

Usage
-----

[](#usage)

For example, if you are using the `attachment` field to upload a file in a form, you can check for viruses using this code snippet in the related Table `validationDefault` method.

```
if (Configure::read('CakeDC/Clamav.enabled')) {
            if (!$validator->getProvider('clamd')) {
                $validator->setProvider('clamd', new ClamdValidation());
            }
            $validator->add(
                'attachment',
                'noVirus',
                [
                    'rule' => 'fileHasNoVirusesFound',
                    'provider' => 'clamd',
                ]
            );
        }
```

Support
-------

[](#support)

For bugs and feature requests, please use the [issues](https://github.com/cakedc/cakephp-clamav/issues) section of this repository.

Commercial support is also available, [contact us](https://www.cakedc.com/contact) for more information.

Contributing
------------

[](#contributing)

This repository follows the [CakeDC Plugin Standard](https://www.cakedc.com/plugin-standard). If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our [Contribution Guidelines](https://www.cakedc.com/contribution-guidelines) for detailed instructions.

License
-------

[](#license)

Copyright 2018 Cake Development Corporation (CakeDC). All rights reserved.

Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~393 days

Total

5

Last Release

887d ago

Major Versions

0.0.1 → 1.0.02019-08-21

1.0.1 → 2.0.02022-07-15

2.0.0 → 3.0.0-RC12023-12-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/204531?v=4)[Cake Development Corporation](/maintainers/CakeDC)[@CakeDC](https://github.com/CakeDC)

---

Top Contributors

[![steinkel](https://avatars.githubusercontent.com/u/151761?v=4)](https://github.com/steinkel "steinkel (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cakedc-cakephp-clamav/health.svg)

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

###  Alternatives

[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[cakephp-fr/recaptcha

To easily use Google Recaptcha (free CAPTCHA service that protect websites from spam and abuse) in CakePHP projects

1419.3k](/packages/cakephp-fr-recaptcha)[muffin/tokenize

Security Tokens

1319.0k1](/packages/muffin-tokenize)[cake17/cakephp-recaptcha

\[DEPRECIATED\] Please use https://github.com/cakephp-fr/recaptcha/

1211.0k1](/packages/cake17-cakephp-recaptcha)

PHPackages © 2026

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