uvasoftware/scanii-php

A pure PHP interface to Scanii, a web based virus scanning engine (https://scanii.com)

v5.1.2 2024-02-19 14:23 UTC

README

A pure PHP interface to the Scanii content processing service - https://scanii.com

How to use this client

Installing using composer:

{
   "require": {
      "uvasoftware/scanii-php": "~$LATEST_RELEASE_VERSION"
   }
}

Basic usage:

 use Scanii\ScaniiClient;
 // creating the client
 $client = ScaniiClient::create($this->key, $this->secret, $verbose = true);

 // scans a file
 $temp = tempnam(sys_get_temp_dir(), "FOO");
 $fd = fopen($temp, "w");
 fwrite($fd, $this->EICAR);

 $result = $this->client->process($temp);
 echo($result->getFindings()[0]);

Please note that you will need a valid scanii.com account and API Credentials.

More advanced usage examples can be found here

More general documentation on scanii can be found here

This library supports PHP 7.4 and above.