2017 © Pedro Peláez
 

laravel virus-scanner

A simple and updated Virus Total wrapper for Laravel 5.5+

image

daniesy/virus-scanner

A simple and updated Virus Total wrapper for Laravel 5.5+

  • Wednesday, September 20, 2017
  • by Daniesy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Laravel Virus Scanner

A simple and updated Virus Total wrapper for Laravel 5.5+, (*1)

Info

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

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. :), (*3)

Instalation

Get starting in 3 easy steps:, (*4)

  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

Laravel Virus Scanner implements all the features offered by the Virus Total Api., (*5)

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., (*6)

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

use VirusScanner;

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

Check a domain

use VirusScanner;

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

Check an ip

use VirusScanner;

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

The Versions

20/09 2017

dev-master

9999999-dev

A simple and updated Virus Total wrapper for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Danut Florian

20/09 2017

1.0.1

1.0.1.0

A simple and updated Virus Total wrapper for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Danut Florian

18/09 2017

1.0.0

1.0.0.0

A simple and updated Virus Total wrapper for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

by Danut Florian