PHPackages                             daniesy/virus-scanner - 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. daniesy/virus-scanner

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

daniesy/virus-scanner
=====================

A simple and updated Virus Total wrapper for Laravel 5.5+

1.0.1(8y ago)28.3kMITPHP

Since Sep 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/daniesy/virus-scanner)[ Packagist](https://packagist.org/packages/daniesy/virus-scanner)[ RSS](/packages/daniesy-virus-scanner/feed)WikiDiscussions master Synced 2d ago

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

Laravel Virus Scanner
=====================

[](#laravel-virus-scanner)

A simple and updated Virus Total wrapper for Laravel 5.5+

Info
----

[](#info)

This package is designed to be used with Laravel 5.5, but you can use it as a standalone package too.

**Laravel Virus Scanner** provides a service provider and a facade, but thanks to Laravel's package auto-discovery, you DON'T need to edit `app.php`. :)

Instalation
-----------

[](#instalation)

Get starting in 3 easy steps:

1. Install package: `composer require daniesy/virus-scanner`
2. Publish vendor settings: `php artisan vendor:publish`
3. Set your api\_key in the `config/virus_scanner.php`

Usage
-----

[](#usage)

**Laravel Virus Scanner** implements all the features offered by the [Virus Total Api](https://www.virustotal.com/en/documentation/public-api/#getting-url-scans).

### Scan a file

[](#scan-a-file)

The scan process can take some time because the files scanned through the Virus Total Api are handled with the lowest priority.

```
use VirusScanner;

$scanner = VirusScanner::scanFile('/path/to/file');
$result = $scanner->checkResult();

echo $result->total;         // The total number of scans
echo $result->positives;     // The number of positive detections
echo $result->permalink;     // Url of the scan page
var_dump($result->scans);    // Array of results for each individual scan

```

### Scan an url

[](#scan-an-url)

```
use VirusScanner;

$scanner = VirusScanner::scanUrl('http://url/to/file.exe');
$result = $scanner->checkResult();

```

### Check a domain

[](#check-a-domain)

```
use VirusScanner;

$report = VirusScanner::checkDomain("https://danutflorian.com");
var_dump($report);

```

### Check an ip

[](#check-an-ip)

```
use VirusScanner;

$report = VirusScanner::checkIp('192.168.1.1');
var_dump($report);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~2 days

Total

2

Last Release

3158d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravellaravel-55laravel-packagesvirustotal

### Embed Badge

![Health badge](/badges/daniesy-virus-scanner/health.svg)

```
[![Health](https://phpackages.com/badges/daniesy-virus-scanner/health.svg)](https://phpackages.com/packages/daniesy-virus-scanner)
```

###  Alternatives

[spatie/laravel-schedule-monitor

Monitor scheduled tasks in a Laravel app

9815.7M9](/packages/spatie-laravel-schedule-monitor)[zetacomponents/system-information

Provides access to common system variables, such as CPU type and speed, and the available amount of memory.

221.9M18](/packages/zetacomponents-system-information)[mcguffin/acf-openstreetmap-field

WordPress ACF Field for OpenStreetMap

1093.7k](/packages/mcguffin-acf-openstreetmap-field)[jdlabails/php-project-analyzer-bundle

Symfony Bundle for PhpProjectAnalyzer

1210.8k](/packages/jdlabails-php-project-analyzer-bundle)

PHPackages © 2026

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