uvasoftware/scanii-php

Scanii 的纯 PHP 接口,Scanii 是一个基于网络的病毒扫描引擎 (https://scanii.com)

v5.1.2 2024-02-19 14:23 UTC

README

Scanii 内容处理服务的纯 PHP 接口 - https://scanii.com

如何使用此客户端

使用 composer 安装

{
   "require": {
      "uvasoftware/scanii-php": "~$LATEST_RELEASE_VERSION"
   }
}

基本用法

 use Scanii\ScaniiClient;
 // creating the client
 $client = ScaniiClient::create($this->key, $this->secret, $verbose = true);

 // scans a file
 $temp = tempnam(sys_get_temp_dir(), "FOO");
 $fd = fopen($temp, "w");
 fwrite($fd, $this->EICAR);

 $result = $this->client->process($temp);
 echo($result->getFindings()[0]);

请注意,您需要一个有效的 scanii.com 账户和 API 凭据。

更多高级用法示例请见 此处

关于 Scanii 的更通用文档请见 此处

此库支持 PHP 7.4 及以上版本。