PHP code example of uvasoftware / scanii-php

1. Go to this page and download the library: Download uvasoftware/scanii-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uvasoftware / scanii-php example snippets


 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]);