PHP code example of ylly / clamav

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

    

ylly / clamav example snippets


$clamav = ClamavFactory::createFromYamlFile('/some/config/file.yaml');

$clamav->isAvailable();

$clamav->getVersion();

// scan path
$result = $clamav->scanPath($path);

$ composer req ylly/php-clamav-scan