定制 daniesy/virus-scanner 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

daniesy/virus-scanner

Composer 安装命令:

composer require daniesy/virus-scanner

包简介

A simple and updated Virus Total wrapper for Laravel 5.5+

README 文档

README

A simple and updated Virus Total wrapper for Laravel 5.5+

Info

This package is designed to be used with Laravel 5.5, but you can use it as a standalone package too.

Laravel Virus Scanner provides a service provider and a facade, but thanks to Laravel's package auto-discovery, you DON'T need to edit app.php. :)

Instalation

Get starting in 3 easy steps:

  1. Install package: composer require daniesy/virus-scanner
  2. Publish vendor settings: php artisan vendor:publish
  3. Set your api_key in the config/virus_scanner.php

Usage

Laravel Virus Scanner implements all the features offered by the Virus Total Api.

Scan a file

The scan process can take some time because the files scanned through the Virus Total Api are handled with the lowest priority.

use VirusScanner;

$scanner = VirusScanner::scanFile('/path/to/file');
$result = $scanner->checkResult();

echo $result->total;         // The total number of scans
echo $result->positives;     // The number of positive detections
echo $result->permalink;     // Url of the scan page
var_dump($result->scans);    // Array of results for each individual scan

Scan an url

use VirusScanner;

$scanner = VirusScanner::scanUrl('http://url/to/file.exe');
$result = $scanner->checkResult();

Check a domain

use VirusScanner;

$report = VirusScanner::checkDomain("https://danutflorian.com");
var_dump($report);

Check an ip

use VirusScanner;

$report = VirusScanner::checkIp('192.168.1.1');
var_dump($report);

统计信息

  • 总下载量: 8.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固