PHPackages                             jdecool/clamav-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jdecool/clamav-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jdecool/clamav-client
=====================

ClamAV PHP deamon client

1.0.0(7y ago)21.2k1MITPHPPHP &gt;=7.1

Since Sep 2Pushed 7y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

ClamAV deamon PHP client
========================

[](#clamav-deamon-php-client)

This library is a PHP client for [ClamAV](https://www.clamav.net) deamon.

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

[](#installation)

It can be install through Composer.

```
$ composer require jdecool/clamav-client
```

Usage
-----

[](#usage)

```
$clientFactory = new JDecool\ClamAV\ClientFactory();

$client = $clientFactory->create('127.0.0.1', 3310);
$client->ping(); // throw an ConnectionError exception if error occured
```

Scan a file

```
$clientFactory = new JDecool\ClamAV\ClientFactory();

$client = $clientFactory->create('127.0.0.1', 3310);
$analysis = $client->scan('/path/to/file');

$analysis->count(); // = 1
$analysis->isInfected(); // true or false
$analysis->getMessage(); // if file is infected, it contains malware name
```

Available méthods
-----------------

[](#available-méthods)

- `JDecool\ClamAV\Client::ping(): void`
- `JDecool\ClamAV\Client::version(): string`
- `JDecool\ClamAV\Client::reload(): void`
- `JDecool\ClamAV\Client::shutdown(): void`
- `JDecool\ClamAV\Client::scanBatch(array $paths): JDecool\ClamAV\Analysis\Analysis`
- `JDecool\ClamAV\Client::scan(string ...$paths): JDecool\ClamAV\Analysis\Analysis`
- `JDecool\ClamAV\Client::contScan(string $path): JDecool\ClamAV\Analysis\Analysis`
- `JDecool\ClamAV\Client::multiscan(string $path): JDecool\ClamAV\Analysis\Analysis`
- `JDecool\ClamAV\Client::allMatchScan(string $path): JDecool\ClamAV\Analysis\Analysis`
- `JDecool\ClamAV\Client::stats(string $path): string`
- `JDecool\ClamAV\Client::startSession(): void`
- `JDecool\ClamAV\Client::endSession(): void`

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2807d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a648f4457ad94c2fc48782bded875f3bf051b480fd2fe01eb7654b9fab180e5e?d=identicon)[jdecool](/maintainers/jdecool)

---

Top Contributors

[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (5 commits)")

---

Tags

clamavphpphp-library

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jdecool-clamav-client/health.svg)

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

###  Alternatives

[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k134](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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