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;
use Scanii\ScaniiTarget;

$client = ScaniiClient::create('your-api-key', 'your-api-secret', ScaniiTarget::US1);

// Scan a file from disk:
$result = $client->process('/path/to/file');
echo implode(', ', $result->findings);

// From a temp file / in-memory stream:
$stream = fopen('php://temp', 'r+');
fwrite($stream, $content);
rewind($stream);

$result = $client->processStream($stream, 'upload.bin');
echo implode(', ', $result->findings);
fclose($stream);

$client = ScaniiClient::create('key', 'secret', 'http://localhost:4000');
bash
composer 
diff
-"uvasoftware/scanii-php": "^5.0"
+"scanii/scanii-php": "^6.0"
diff
  - $r->getFindings()
  + $r->findings