alexthegull / test_binary_tree_db
alexthegull 二叉树数据库
1.0.0
2023-04-14 08:05 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2024-09-28 13:40:52 UTC
README
安装
composer require cleantalk/spbct-heuristic-analyser
使用
<?php // Require composer autoloader require_once 'vendor/autoload.php'; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Controller; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Structures\FileInfo; // MyModel class need to be extended \CleantalkSP\Common\Scanner\HeuristicAnalyser\Model\Model $my_model = new myMoodel(); // Instantiate the scanner module $heuristic_scanner = new Controller($my_model); // Prepare files information $file_to_check = new FileInfo( 'name_of_the_file.php', 'full_hash' ); // $res will contain the scanning result $res = $heuristic_scanner->scanFile($file_to_check);