openxtrem / php-clamav
appwrite/php-clamav 的分支。PHP 的 ClamAV 网络和管道客户端
3.1.0
2024-07-26 08:05 UTC
Requires
- php: 8.2.* | 8.3.*
- ext-sockets: *
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-09-26 12:35:45 UTC
README
PHP 客户端,用于通过 TCP 连接到 ClamAV 守护进程或使用命令行中的本地套接字,以扫描存储文件中的病毒。
入门
使用 composer 安装
composer require appwrite/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
系统需求
此包需要 PHP 8.0 或更高版本。我们建议尽可能使用最新的 PHP 版本。
查找我们
作者
Eldad Fux
版权和许可
MIT 许可证 (MIT) https://open-source.org.cn/licenses/mit-license.php