PHP code example of pato05 / amphp-clamav

1. Go to this page and download the library: Download pato05/amphp-clamav 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/ */

    

pato05 / amphp-clamav example snippets


\Amp\ClamAV\clamav('tcp://IP:PORT'); // to access it statically
// or
$clamav = new \Amp\ClamAV\ClamAV('tcp://IP:PORT');

$result = \Amp\ClamAV\multiScan('FILEPATH');

$clamSession = \Amp\ClamAV\session();

$clamSession->end();