PHPackages                             snipershady/virustotal-api - 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. snipershady/virustotal-api

ActiveLibrary[API Development](/categories/api)

snipershady/virustotal-api
==========================

A simple wrapper for virustotal.com service, without any external dependencies, pure PHP.

v1.0.1(11mo ago)3123↓50%GPL-3.0-or-laterPHPPHP &gt;=8.2

Since Jun 6Pushed 11mo agoCompare

[ Source](https://github.com/snipershady/virustotal-api)[ Packagist](https://packagist.org/packages/snipershady/virustotal-api)[ Docs](https://www.spinfo.it)[ RSS](/packages/snipershady-virustotal-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

virustotal-api
==============

[](#virustotal-api)

A simple wrapper for virustotal.com service, without any external dependencies, pure PHP.

Example with file upload
------------------------

[](#example-with-file-upload)

Get your free Api key, signing here

```
use Virustotal\Dto\UploadFileDto;
use Virustotal\Service\VirustotalService;

$apiKey = "please_set_your_api_key";  // Change this value with your API KEY

$vts = new VirustotalService($apiKey);
$ufdto = $vts->uploadFile("/tmp/vt.txt");
$faDto = $vts->analyze($ufdto);
if ($faDto->getMalicious() === 0 && $faDto->getSuspicious() === 0) {
    echo PHP_EOL . "No virus detected" . PHP_EOL;
}
```

Example with url
----------------

[](#example-with-url)

```
use Virustotal\Dto\UploadFileDto;
use Virustotal\Service\VirustotalService;

$apiKey = "please_set_your_api_key";  // Change this value with your API KEY

$vts = new VirustotalService($apiKey);
$ufdto = $vts->scanUrl($url);
$faDto = $vts->analyze($ufdto);
if ($faDto->getMalicious() === 0 && $faDto->getSuspicious() === 0) {
    echo PHP_EOL . "No virus detected" . PHP_EOL;
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/160662d52c89da3351e2a94b3d354074bf30137477fc7586eeacc52e3cb44462?d=identicon)[snipershady](/maintainers/snipershady)

---

Top Contributors

[![snipershady](https://avatars.githubusercontent.com/u/20489856?v=4)](https://github.com/snipershady "snipershady (14 commits)")

---

Tags

apiv3virustotalvirustotal.com

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/snipershady-virustotal-api/health.svg)

```
[![Health](https://phpackages.com/badges/snipershady-virustotal-api/health.svg)](https://phpackages.com/packages/snipershady-virustotal-api)
```

###  Alternatives

[pacely/mailchimp-apiv3

Simple API wrapper for Mailchimp API V3

95654.6k2](/packages/pacely-mailchimp-apiv3)[welp/mailchimp-bundle

MailChimp API V3 Symfony Bundle

45360.3k1](/packages/welp-mailchimp-bundle)[jayzeng/virustotalapi

VirusTotal Public API v2.0 PHP Wrapper

62140.7k3](/packages/jayzeng-virustotalapi)[mailjet/mailjet-bundle

Symfony bundle for Mailjet API V3

34395.8k](/packages/mailjet-mailjet-bundle)[phpfui/constantcontact

Object Oriented Wrapper for Constant Contact API V3 for PHP 8+

2015.7k1](/packages/phpfui-constantcontact)

PHPackages © 2026

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