PHPackages                             knops/virustotal-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. [API Development](/categories/api)
4. /
5. knops/virustotal-client

ActiveLibrary[API Development](/categories/api)

knops/virustotal-client
=======================

A PHP client for the VirusTotal API v3

v1.0(7mo ago)00MITPHPPHP ^8.1

Since Sep 22Pushed 7mo agoCompare

[ Source](https://github.com/knopsmedia/virustotal-client)[ Packagist](https://packagist.org/packages/knops/virustotal-client)[ RSS](/packages/knops-virustotal-client/feed)WikiDiscussions main Synced 1mo ago

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

VirusTotal Client Library
=========================

[](#virustotal-client-library)

A PHP library for scanning files using the VirusTotal API v3. This library follows PSR standards and provides a clean, type-safe interface for file scanning and analysis.

Features
--------

[](#features)

- ✅ **PSR-18 HTTP Client** - Uses PSR HTTP standards for maximum compatibility
- ✅ **Type Safety** - Full PHP 8.1+ type declarations with strict types
- ✅ **Comprehensive API** - Upload files, check analysis status, and get detailed results
- ✅ **Error Handling** - Proper exception handling with descriptive messages
- ✅ **Async Support** - Poll for results or wait for completion
- ✅ **Protected ZIP Support** - Handle password-protected ZIP files
- ✅ **Detailed Results** - Access engine-specific results and statistics
- ✅ **Factory Pattern** - Easy setup with popular HTTP clients

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

[](#installation)

Install via Composer:

```
composer require knops/virustotal-client
```

For the easiest setup with Guzzle HTTP client:

```
composer require knops/virustotal-client guzzlehttp/guzzle nyholm/psr7
```

Quick Start
-----------

[](#quick-start)

### Using the Factory (Recommended)

[](#using-the-factory-recommended)

```
