flyocloud / php-clamav
This package is abandoned and no longer maintained.
The author suggests using the appwrite/php-clamav package instead.
ClamAV network and pipe client for PHP
2.0.0
2022-12-29 15:50 UTC
Requires
- php: >=8.0
- ext-sockets: *
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2023-03-08 08:07:24 UTC
README
THE PHP 8 COMPATIBLE FORK UNTIL appwrite#24 IS MERGED!
Appwrite ClamAV PHP Client
PHP Client to connect to ClamAV daemon over TCP or using a local socket from command line and scan your storage files for viruses.
Getting Started
Install using composer:
composer require flyocloud/php-clamav
<?php require_once 'vendor/autoload.php'; use Appwrite\ClamAV\Network; $clam = new Network('localhost', 3310); // Or use new Pipe() for unix socket $clam->ping(); // Check ClamAV is up and running $clam->version(); // Check ClamAV version $clam->fileScan('path/to/file.dmg'); // Return true of false for file scan $clam->reload(); // Reload ClamAV database $clam->shutdown(); // Shutdown ClamAV
System Requirements
This package requires PHP 7.1 or later. We recommend using the latest PHP version whenever possible.
Find Us
Authors
Eldad Fux
Copyright and license
The MIT License (MIT) http://www.opensource.org/licenses/mit-license.php