norman-huth / virus-total-php
是 VirusTotal API V3 的包装器。
v1.0.2
2023-10-02 20:48 UTC
Requires
- php: ^8.0
- ext-fileinfo: *
- ext-json: *
- guzzlehttp/guzzle: ^6.3|^7.0
This package is auto-updated.
Last update: 2024-08-31 00:36:02 UTC
README
此包是 VirusTotal.com API V3 的包装器。
安装
composer require norman-huth/virus-total-php
说明
此包装器为每个 API 端点提供了一个方法,方法的名称采用 camelCase
格式。
已定义以下别名方法,以允许更方便地处理:
端点以以下数组的形式输出
return [ 'status' => 'int', # Response HTTP status code 'successful' => 'bool' # True if the response HTTP status code is between 200 & 299, 'data' => 'array|string' # The content from the API. If the response have a single `data` key, then the `data` content returns ];
注意:如果您禁用了 http_errors
,在请求失败时将抛出异常。