PHPackages                             moay/virus-total-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. moay/virus-total-api

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

moay/virus-total-api
====================

Very simple VirusTotal api wrapper for Laravel 5

103.9k4PHP

Since Mar 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/moay/virus-total-api)[ Packagist](https://packagist.org/packages/moay/virus-total-api)[ RSS](/packages/moay-virus-total-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

virus-total-api
===============

[](#virus-total-api)

Very simple VirusTotal API wrapper for Laravel 5. This package wraps the VirusTotal API in to very simple methods in order to allow you to very easily perform a virus scan or malware scan on URLs or files. Please be aware, that there are some limits to the public API. See their docs:

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

[](#installation)

Installation is super simple. Use Composer to require this package:

```
    "require": {
        "moay/virus-total-api": "dev-master"
    }
```

After having pulled the repo via `composer update`, you will have to add this to your Laravel providers in `app/config/app.php` (within the providers array):

```
'moay\VirusTotalApi\VirusTotalApiServiceProvider',

```

In order to access the API, you need a VirusTotal API key. Get one at their website and publish the package settings:

```
php artisan vendor:publish

```

This will publish a file named `virus-total-api` to your `app/config` directory. Insert your API key there to make it work.

Usage
-----

[](#usage)

Usage is super simple. Let's imagine a simple controller:

```
