alexthegull/test_binary_tree_db

alexthegull binary tree database

1.0.0 2023-04-14 08:05 UTC

This package is not auto-updated.

Last update: 2025-07-05 17:34:23 UTC


README

Install

composer require cleantalk/spbct-heuristic-analyser

Using

<?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);